Last active
October 24, 2023 05:51
-
-
Save dublado/c7a05236c33a39c9f84b7212094a8b2b to your computer and use it in GitHub Desktop.
sips convert HEIC jpeg or PNG jpeg
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
for i in *.png; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%png}jpg"; done | |
for i in *.HEIC; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%HEIC}jpg"; done |
sure.. i've posted ong example as a mistake... thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this! But Isn't it "sips convert png jpeg"?
For HEIC it would be:
for i in *.HEIC; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%HEIC}jpg"; done