Last active
December 31, 2015 11:09
-
-
Save sergebat/7977666 to your computer and use it in GitHub Desktop.
ImageMagick: Convert test.png of any size to the 768x1024 image, cropping it vertically, or extending vertically if image is too small (filling with specified color)
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
convert test.png -background "#ff0000" -resize 768x4096^ -gravity center -extent 768x1024 test-out.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment