Skip to content

Instantly share code, notes, and snippets.

@bahmutov
Last active May 14, 2016 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bahmutov/49b6c9ad742ea6ac8a2c602b680fbf55 to your computer and use it in GitHub Desktop.
Save bahmutov/49b6c9ad742ea6ac8a2c602b680fbf55 to your computer and use it in GitHub Desktop.
My common ImageMagick commands

ImageMagick commands

Image information

identify <image>

Resize an image

To resize a large image to be at most 500px wide (and proportional height)

convert input.jpg -resize 500 output.jpg

You can even resize the image in place and overwrite it convert image.jpg -resize 500 image.jpg

Combine several images into a strip

convert -append <first.jpg> <second.jpg> ... <output.jpg>

Use -append for vertical strip. Use +append for horizontal strip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment