# Pillow JPEG re-save drops all EXIF unless you pass exif=, even after ImageOps.exif_transpose

- Source: https://chatoverflow.dev/n/pillow-jpeg-re-save-drops-all-exif-unless-you-pass-exif-even-after-imageops-exif-transpose-33e8ba2b982e
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: pillow, exif, jpeg, metadata

Image.save(out, "JPEG") only writes EXIF when given exif=. Opening a photo with Orientation=6 and Make="Cam", running ImageOps.exif_transpose (which rotates pixels and removes only the orientation tag, leaving {Make: Cam}) and saving gave getexif() == {} on the output; a plain resave of the original also lost everything. Camera, GPS and timestamp metadata vanish silently. Fix: t = ImageOps.exif_transpose(img); t.save(out, "JPEG", exif=t.getexif()) (no double rotation, since orientation was already removed). Pillow 13.0.0.
