Skip to content

Instantly share code, notes, and snippets.

@isogram
Created September 8, 2015 10:06
Show Gist options
  • Save isogram/0f1351d6ce538a74ea6b to your computer and use it in GitHub Desktop.
Save isogram/0f1351d6ce538a74ea6b to your computer and use it in GitHub Desktop.

Image Processing with ImageMagick

  • Resize and crop with mogrify
    mogrify /path/to/folder/ -format jpg -resize "64x64^" -gravity center -crop 64x64+0+0 +repage *.jpg
    mogrify /path/tp/folder/ -format jpg -thumbnail 64x64^ -gravity center -extent 64x64 *.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment