sorl/sorl-thumbnail — Issue #81: Thumbnail tag fails with ValueError for some images.
Author: codepass
Created: 2012-01-19 18:12:27+00:00
State: open

I've got the following trace:

ERROR Thumbnail tag failed:
[...skipped...]
File "/usr/local/lib/python2.7/dist-packages/sorl_thumbnail-11.12-py2.7.egg/sorl/thumbnail/engines/convert_engine.py", line 95, in _orientation
result = int(result)
ValueError: invalid literal for int() with base 10: 'unknown'

I guess sometimes 'unknown' may appear in the result variable (line 95 of convert_engine.py) instead of integer value of rotation angle.