Back to Blog Posts

Convert HEIC images to JPG and strip EXIF in Bash

Snippet

Wednesday, 06 April 2022

HEIC is Apple’s proprietary version of the HEIF (High-Efficiency Image File format), in the wild this is less supported than JPG, hence the conversions below.


sudo apt-get install libheif-examples

for image in *.HEIC; do heif-convert "$image" "$image.jpg"; done

for file in *; do mv "${file}" "${file/.HEIC/}"; done

exiftool -all= *.jpg


Leave a Comment

Comments (0)