google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

attempt to create photosize with height and width both of zero caused server errors #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in the admin, create a photosize of width 0 and height 0.

What is the expected output? What do you see instead?

- Rather than form validation blocking this, a ValueError is raised later
on instead, producing a 500 error.

What version of the product are you using? On what operating system?

- SVN trunk (r349) on linux

(The user attempting to create this photosize did so in the attempt to
create an "unsized" size in which photo effects would be applied, but the
original size would be retained -- which would be a useful feature.)

Original issue reported on code.google.com by jsmull...@gmail.com on 17 Oct 2008 at 3:49

GoogleCodeExporter commented 9 years ago
This works as documented. I'm going to mark this a feature request and put it 
on the 
list for likely inclusion in the next release.

Original comment by justin.d...@gmail.com on 17 Oct 2008 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by justin.d...@gmail.com on 17 Oct 2008 at 5:12

GoogleCodeExporter commented 9 years ago
As of r351 Photologue will now accept a photosize with a height and width of 
zero. 
This photosize will apply all appropriate effect but will not resize the image 
in any 
way. Please note that unless you ARE applying effects to the original image you 
will 
not want to do this as you will lose some image quality when it is compressed 
and 
saved.

Original comment by justin.d...@gmail.com on 23 Oct 2008 at 5:26