Skip to content

Instantly share code, notes, and snippets.

@Narnach
Created December 1, 2008 10:19
Show Gist options
  • Save Narnach/30702 to your computer and use it in GitHub Desktop.
Save Narnach/30702 to your computer and use it in GitHub Desktop.
Create a 100x100 thumbnail using ImageMagick
#!/bin/bash
# Creates a 100x100 thumbnail of an image using ImageMagick's convert.
convert -size 300x300 $1 -thumbnail 100x100^ -gravity center -extent 100x100 thumb_$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment