This repository contains a single utility script for converting HEIC/HEIF images (such as those airdropped from an iPhone) into JPEG files with all metadata removed. The resulting JPEGs are safe to upload without leaking location or device information.
- Python 3.8+
pillowandpillow-heif
On macOS you may also need libheif which can be installed via Homebrew:
brew install libheif
pip install pillow pillow-heifpython sanitize_heic_to_jpg.py DIRECTORY [options]Options:
-r,--recursive– process images in sub‑directories as well-q,--quality– JPEG quality between 1 and 100 (default90)--delete– delete the original HEIC files after successful conversion--ext– comma-separated list of extensions to match (defaultheic,heif)
Example converting images in ~/Airdrop and removing the originals:
python sanitize_heic_to_jpg.py ~/Airdrop --deleteThis will create JPEG versions of all *.heic or *.heif files in the given
directory, ensuring no metadata is copied over.