Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't generate thumbnail #151

Closed
camilonova opened this Issue · 1 comment

2 participants

@camilonova

Hi, i can't generate the thumbnail for this image:

http://cl.ly/3a1e303Y263C3m3Y2v3X

This is my traceback:

http://dpaste.com/752816/

Seems its a problem with exif data or something, i try both PIL and Pillow but i have the same error no matter the library.

im using easy-thumbnails==1.0.1 on django==1.4

Thanks

@SmileyChris SmileyChris closed this issue from a commit
@SmileyChris Catch a potential OSError when getting EXIF info
_getexif is pretty touchy about errors happening. It was already wrapped
in a generous try/except which catches most issues. It looks like this
one is happening with the TIFF plugin (which is odd, since the image
does seem to be a JPEG - I guess PIL is just confused).

Oh well, just add another exception clause to the except;pass branch.

Fixes #151.
671b830
@camilonova

You made my day! Thanks

@camilonova camilonova referenced this issue from a commit in camilonova/easy-thumbnails
@camilonova camilonova I get an IOError instead of OSError, since im not sure OSError are ha…
…ndled in this case i have replaced it.


This handles well the corrupted image reported at #151
377ed6d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.