http://dev.comics.org/bugs/show_bug.cgi?id=765
Web Browser: ---
Summary: generic image upload needs to check for valid images
Product: GCD Online
Version: 0.6 kin-der-kids
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: data entry
AssignedTo:
gcd-...@googlegroups.com
ReportedBy:
gcd...@garcke.de
Estimated Hours: 0.0
Seemingly non-supported image types can be uploaded using the django imagefile
model.
I would have thought that the django ImageType takes care of that, as it should
according to the docs.
Anyway, since is the error we might get:
File "/var/www/gcd-django/apps/oi/views.py", line 3865, in image_compare
image_tag = get_preview_generic_image_tag(revision, "uploaded image")
File "/var/www/gcd-django/apps/oi/covers.py", line 51, in
get_preview_generic_image_tag
width = min(revision.image_file.width, 400)
File "/usr/lib/python2.6/site-packages/django/core/files/images.py", line 15,
in _get_width
return self._get_image_dimensions()[0]
TypeError: 'NoneType' object is unsubscriptable
--
Configure bugmail:
http://dev.comics.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.