Skip to content

Instantly share code, notes, and snippets.

@YCmove
Created June 14, 2024 17:34
Show Gist options
  • Save YCmove/bf6523c3540dd74297113e8732689b24 to your computer and use it in GitHub Desktop.
Save YCmove/bf6523c3540dd74297113e8732689b24 to your computer and use it in GitHub Desktop.
Batch convert HEIC image to jpg
sudo apt install heif-convert

Inside the folder:

for f in *.HEIC; do heif-convert -q 100 "$f" "${f%.*}.jpg"; done

Output:

File contains 1 images
Written to IMG_0871.jpg
Auxiliary image written to IMG_0871-urn:com:apple:photo:2020:aux:hdrgainmap.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment