Skip to content

Instantly share code, notes, and snippets.

@dublado
Last active October 24, 2023 05:51
Show Gist options
  • Save dublado/c7a05236c33a39c9f84b7212094a8b2b to your computer and use it in GitHub Desktop.
Save dublado/c7a05236c33a39c9f84b7212094a8b2b to your computer and use it in GitHub Desktop.
sips convert HEIC jpeg or PNG jpeg
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
@c-arthurs
Copy link

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

@dublado
Copy link
Author

dublado commented Nov 28, 2021

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