Created
July 6, 2020 02:51
-
-
Save kyktommy/0c98f76c91b3099be5001f9d0b21f495 to your computer and use it in GitHub Desktop.
sips bulk resize png to jpg
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
# png to jpg with width 100 | |
for i in *.png; do sips -s format jpeg -s formatOptions 90 -Z 100 $i --out "${i%png}jpg";done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment