haltakov / simple-photo-gallery

Beautiful and simple photo galleries that help you tell your story. Free and open-source.
https://haltakov.net/simple-photo-gallery
MIT License
194 stars 51 forks source link

'GifImageFile' object has no attribute '_getexif' #67

Closed shaenr closed 4 years ago

shaenr commented 4 years ago

During the build step,

Something went wrong while generating the thumbnails:  'GifImageFile' object has no attribute '_getexif'

I looked through media.py and tried adding an exception catch for AttributeError at occasions where I saw getexif being called or a gif ext being part of a conditional statement. I'm pretty sure that gifs generally don't have the same metadata as jpgs. But I'm not certain if its a problem with the image itself or more fundamentally.

haltakov commented 4 years ago

Thanks for reporting this and sorry for my late reply. I didn't get an e-mail that there is a new issue, so I see it just now.

I think the problem is that GIFs don't have a standardized metadata format and also no EXIF. I will fix this in the next release.

haltakov commented 4 years ago

This works now. I will release the fix as part of version 1.1.1 in the next 1-2 days.