Last active
December 27, 2015 09:49
-
-
Save alexdmejias/7306238 to your computer and use it in GitHub Desktop.
imagemagick cheatsheet
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
#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