[Bug 765] New: generic image upload needs to check for valid images

6 views
Skip to first unread message

GCD Tech Bugs

unread,
Oct 27, 2012, 9:00:06 AM10/27/12
to gcd-...@googlegroups.com
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.

GCD Tech Bugs

unread,
Oct 30, 2016, 9:29:56 PM10/30/16
to gcd-...@googlegroups.com
http://dev.comics.org/bugs/show_bug.cgi?id=765


Daniel Nauschuetz <nausc...@yahoo.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |LATER




--- Comment #1 from Daniel Nauschuetz <nausc...@yahoo.com> 2016-10-31 02:29:54 PST ---
Transitioned to GitHub:
https://github.com/GrandComicsDatabase/gcd-django/issues/213
Reply all
Reply to author
Forward
0 new messages