dragonfly-science / seabirds.net

Website for seabirds.net
http://www.seabirds.net
2 stars 4 forks source link

ERROR:sorl.thumbnail:Thumbnail tag failed #15

Closed timClicks closed 12 years ago

timClicks commented 12 years ago

Received this traceback.

[03/Apr/2012 14:15:35] "GET /sin.html HTTP/1.1" 200 7770
ERROR:sorl.thumbnail:Thumbnail tag failed:
Traceback (most recent call last):
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/templatetags/thumbnail.py", line 45, in render
    return self._render(context)
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/templatetags/thumbnail.py", line 97, in _render
    file_, geometry, **options
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/base.py", line 61, in get_thumbnail
    thumbnail)
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/base.py", line 86, in _create_thumbnail
    image = default.engine.create(source_image, geometry, options)
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/engines/base.py", line 15, in create
    image = self.orientation(image, geometry, options)
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/engines/base.py", line 26, in orientation
    return self._orientation(image)
  File "/home/tim/dragonfly/seabirds-env/lib/python2.6/site-packages/sorl/thumbnail/engines/pil_engine.py", line 29, in _orientation
    exif = image._getexif()
  File "/usr/lib/python2.6/dist-packages/PIL/JpegImagePlugin.py", line 381, in _getexif
    info.load(file)
  File "/usr/lib/python2.6/dist-packages/PIL/TiffImagePlugin.py", line 382, in load
    raise IOError, "not enough data"
IOError: not enough data
edwardabraham commented 12 years ago

I think I have fixed this ... needed to recompile PIL on the server and make sure the path to the TIFF library was included.