Skip to content

maku693/imgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgres

Resize image with ease. Supports GIF, JPEG and PNG.

Installation

Go toolchain required.

go get -u github.com/maku693/imgres

Usage

Usage of imgres:
  -fit string
        fitting of scaled image ("contain" or "cover") (default "contain")
  -height int
        max height of output file
  -in string
        input file (optional, default stdin)
  -out string
        output file (optional, default stdout)
  -width int
        max width of output file

Examples

Simple
Before After
Imgur After
imgres -in image.png -width 150 -out image150.png
Specify all options
Before After
Imgur After
imgres -in image.png -width 150 -height 200 -fit cover -out image150x200cover.png
Use stdout/stdin
Before After
Imgur After
imgres -width 100 < image.png > image100.png

About

Resize image with ease.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages