Last active
October 12, 2024 20:10
-
-
Save asmega/da68077597741b62708479c9282d46d0 to your computer and use it in GitHub Desktop.
image manipulation
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
# correctly orientate images | |
mogrify -auto-orient *.jpg | |
# resize an image to 1024x104 with cropping | |
# set gravity to center, north, northeast etc | |
# outputs to `out` directory | |
mogrify -resize "1024x1024^" -gravity center -extent 1024x1024 -path out INPUT.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment