convert

command module
v0.0.0-...-006b15e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2014 License: MIT Imports: 9 Imported by: 0

README

convert

An application to convert and resize images written in Go.

convert creates a copy of the given image file, changing its format as indicated
by the file's extension and optionally downscaling it. Only supports gif, 
jpg (jpeg), or png input and output.

Usage:

  convert [options] <image_filename> <out_filename>

Options:

  -h: Constrain height of output image to this many pixels.
  -s: Constrain size (height and width) of output image to this many pixels.
  -w: Constrain width of output image to this many pixels.

Example: (convert from png to jpg and constrain to max 1024 on either side)

  convert -s 1024 foo.png foo.jpg

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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