Last active
January 27, 2018 05:17
-
-
Save lucascantor/8f48d8fdd5ccfaca97eecc4eab642f0f to your computer and use it in GitHub Desktop.
Compress images using imagemagick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# imagemagick compression | |
# requires brew install imagemagick | |
# $1: original image | |
# $2: compressed output image | |
# usage: imgcompress original.jpg compressed.jpg | |
function imgcompress() { | |
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% $1 $2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment