Skip to content

Instantly share code, notes, and snippets.

@alexdmejias
Last active December 27, 2015 09:49
Show Gist options
  • Save alexdmejias/7306238 to your computer and use it in GitHub Desktop.
Save alexdmejias/7306238 to your computer and use it in GitHub Desktop.
imagemagick cheatsheet
#resize
convert img.gif -resize 64x64 resized_img.gif
# resize image
convert -resize 50% source.png dest.png
# convert from one format to another
convert image.gif image.jpg
#resize
mogrify -resize 50% rose.jpg
#You can resize all your JPEG images in a folder to a maximum dimension of 256x256 with this command:
$ mogrify -resize 256x256 *.jpg
#Finally, we convert all our PNG images in a folder to the JPEG format:
$ mogrify -format jpg *.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment