如图
2016-05-17 12:57:24,899 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /avatar/add/
Traceback (most recent call last):
File “/opt/filesrv/seafile/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/filesrv/seafile/seahub/seahub/auth/decorators.py”, line 26, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/opt/filesrv/seafile/seahub/seahub/avatar/views.py”, line 76, in add
avatar.avatar.save(image_file.name, image_file)
File “/opt/filesrv/seafile/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/fields/files.py”, line 111, in save
self.instance.save()
File “/opt/filesrv/seafile/seahub/seahub/avatar/models.py”, line 150, in save
super(Avatar, self).save(*args, **kwargs)
File “/opt/filesrv/seafile/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/base.py”, line 734, in save
force_update=force_update, update_fields=update_fields)
File “/opt/filesrv/seafile/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/base.py”, line 771, in save_base
update_fields=update_fields, raw=raw, using=using)
File “/opt/filesrv/seafile/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/dispatch/dispatcher.py”, line 189, in send
response = receiver(signal=self, sender=sender, **named)
File “/opt/filesrv/seafile/seahub/seahub/avatar/models.py”, line 173, in create_default_thumbnails
instance.create_thumbnail(size)
File “/opt/filesrv/seafile/seahub/seahub/avatar/models.py”, line 98, in create_thumbnail
image = image.crop((diff, 0, w - diff, h))
File “/opt/python2.7/lib/python2.7/site-packages/PIL/Image.py”, line 763, in crop
self.load()
File “/opt/python2.7/lib/python2.7/site-packages/PIL/ImageFile.py”, line 189, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File “/opt/python2.7/lib/python2.7/site-packages/PIL/Image.py”, line 385, in _getdecoder
raise IOError(“decoder %s not available” % decoder_name)
IOError: decoder jpeg not available