imgcrush

command module
v0.0.0-...-96ae26a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: MIT Imports: 14 Imported by: 0

README

imgcrush

Recursively, losslessly and quickly compress JPG, PNG, GIF images.

Requirements:

Usage:

Recursively, losslessly and quickly compress JPG, PNG, GIF images.

Usage: imgcrush [-c 2] [-o done] [DIRECTORY] ...
  -c <num>     concurrency from 1 to 8, defaults to 2
  -o <dir>     output directory, defaults to done
  --old-style  print results using old style

If no input directory provided, it will use current directory.
Images in output directory will not be used as input images.
You can set TERM_WIDTH environment variable if there's no tty.

Install:

If you have installed go already, run:

go get -u -v github.com/caiguanhao/imgcrush

Or run imgcrush in a Docker container:

# build the image first:
docker build -t imgcrush .

# run imgcrush in your current directory
docker run --rm -v="$(pwd):/imgcrush" -e "TERM_WIDTH=$(tput cols)" imgcrush -c 4 .

# or you can make an alias for the long Docker command
# alias imgcrush='docker run --rm -v="$(pwd):/imgcrush" -e "TERM_WIDTH=$(tput cols)" imgcrush'

References:

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