Created
June 18, 2017 19:18
-
-
Save pangorgo/a8cec5dcac3c7fa0af4f4916ef8c6745 to your computer and use it in GitHub Desktop.
some batch image convert useful tricks
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
# cropping largest possible image with prvided ratio | |
RATIO=960x540; ls *.jpg | xargs -I "{}" convert {} -geometry $RATIO^ -gravity center -crop $RATIO+0+0 resized/{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment