Moving from Google Pixel on Android to Apple iPhone on iOS brought new challenges for the photos stored on the Google Photos cloud. The format of the iOS photos is HEIC being a perfect container format for storing individual images and image sequences, but with low out-of-the box system support. Imagine sending a HEIC photo to your automotive technician / mechanic still sitting on Windows 7 desktop. The obvious way is converting them from HEIC to JPEG in a batch.
Install libheif an HEIF and AVIF file format decoder and encoder
sudo apt install libheif-examplesResize all
HEICimages ending with.HEIC1 in adownloadsfolder toJPGwith75%image qualitycd ~/downloads for file in *.HEIC; do heif-convert -q 75 "$file" "${file/%.HEIC/.jpg}"; done
Edited on 2022-04-01 to match the capital file extension ↩︎