Last active
August 2, 2017 09:08
-
-
Save paazmaya/f5916a2900be8230bed6b83967ec692e to your computer and use it in GitHub Desktop.
Shave off (also known as cropping) sides from JPEG images with GraphicsMagick
This file contains hidden or 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
#!/bin/bash | |
find . -maxdepth 2 -type f -iname '*.jpg' \ | |
-exec sh -c '(cd $(dirname {}) && gm mogrify -shave 100x100 -auto-orient -preserve-timestamp {})' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could be the followed with: