imgres

command module
v0.0.0-...-5907a2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: ISC Imports: 3 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL