Last active
February 21, 2016 19:01
-
-
Save wilcoverhoeven/15d5cf98c0b34e773e79 to your computer and use it in GitHub Desktop.
OSX bash script to reduce image (jpg) size, by resizing, removing color profiles and saving with a jpg quality of 70%.
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
#!/bin/bash | |
find . -type f \( -name '*.jpg' -o -name '*.JPG' -o -name '*.jpeg' -o -name '*.JPEG' \) -print0 | xargs -0 sips $(file) --resampleHeightWidthMax 2000 --deleteProperty profile --setProperty formatOptions 70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment