Created
October 29, 2017 00:40
-
-
Save adamli/a28d444894bd83c2e81b6e6f6c32972c to your computer and use it in GitHub Desktop.
Batch resizing multiple images
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
| for file in *.JPG; do mv "$file" "${file/.JPG/.jpg}"; done | |
| mkdir gif | |
| mv *.gif gif | |
| convert '*[500x500]' -set filename:base "%[base]" "done2/%[filename:base].jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment