ImageMagick

I've written about ImageMagick before. It is a very useful tool with a great interface. It seems that whatever I want to do to an image is just one command away.

I used ImageMagick again yesterday when I wrote my first post with images. I needed to resize the images and combine two together. In an effort to not have to go searching every time I want to do some image manipulation I'm going to keep this living cheatsheet of commands I've found useful.

Convert HEIC to JPG

See my previous post.

Resize an image

convert original.jpg -resize 1000x1000! resized.jpg

Combine two images top-to-bottom

convert -append top.jpg bottom.jpg combo.jpg

Combine two images side-by-side

convert +append left.jpg right.jpg combo.jpg

Make a slideshow

mogrify -resize 800x600 -background black -gravity center -extent 800x600 *jpg # Make images the same size mogrify -auto-orient *jpg # Make the images all the same orientation convert -delay 800 -loop 0 *jpg slideshow.gif # Make a gif slideshow ffmpeg -i slideshow.gif slideshow.mp4 # Convert gif to mp4