hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

failure on image with rotation information #56

Closed thet closed 2 years ago

thet commented 6 years ago

I have a rotated image which fails when loading exif data like follows:

import PIL
import piexif

image = PIL.Image.open('IMG_7250.jpg')
exif_data = piexif.load(image.info['exif'])
exif_bytes = piexif.dump(exif_data)

if fails with:

*** error: cannot convert argument to integer

The image is attached. Image removed.

thet commented 2 years ago

Closing due to stale issue.