Created
October 14, 2016 02:58
-
-
Save daohoangson/16523d47b797528c56539e23f9010680 to your computer and use it in GitHub Desktop.
Process (lots of) images with mogrify
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 | |
# Looks for all files under directory | |
# Then execute ImageMaick commands on them: | |
# 1. Strip metadata | |
# 2. Reduce quality to 66% | |
find /path/to/image/directory -type f -print0 | xargs -0 -n50 mogrify -strip -quality 66 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment