Created
December 15, 2013 21:08
-
-
Save sergebat/7978130 to your computer and use it in GitHub Desktop.
ImageMagick: Convert all PNG files from "input" sub-directory of any size to the 768x1024 images in output directory, cropping it vertically, or extending vertically if image is too small (filling with specified color), converting to JPG
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
mogrify -path "output" -background "#ff0000" -format jpg -resize 768x4096^ -gravity center -extent 768x1024 input/*.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment