Skip to content

Instantly share code, notes, and snippets.

@sepastian
Last active December 23, 2015 16:49
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 sepastian/6664140 to your computer and use it in GitHub Desktop.
Save sepastian/6664140 to your computer and use it in GitHub Desktop.
Imagemagick recipies.
# Arange several images into a single images consisting of 1 tile per image.
# The final image will consist of a single row of 4 images,
# each 1200x in size, with 20 pixels padding around each border.
# The background color of the output image is black.
$ montage -tile 4x1 input_image_1 input_image_2 input_image_* -geometry 1200x+20+20 -background black output.jpg
# Center an original image above a white background that is larger than the original image.
$ convert -gravity Center INPUT.png -background white -extent 600x650 OUTPUT.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment