Created
December 1, 2008 10:19
-
-
Save Narnach/30702 to your computer and use it in GitHub Desktop.
Create a 100x100 thumbnail using ImageMagick
This file contains 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
#!/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