I can open it is and all looks good using Pixelmator (I don't have Photoshop installed). I don't think there is anything wrong with the image.
Part of my question is a result of being new to actually using exceptions in my programs and dealing with the exceptions is a primary part of what I need to do with this program. When I get an exception that seems to be an issue with PIL (i.e. not my program or a problem with the image) I am not sure what the "right" or conventional way to deal with it is. Vincent On Sat, Oct 13, 2012 at 10:49 PM, Chris Angelico <ros...@gmail.com> wrote: > On Sun, Oct 14, 2012 at 3:36 PM, Vincent Davis <vinc...@vincentdavis.net> > wrote: > > Oops, I was going to make note of the file size. 1.2MB > > Then I'd definitely declare the file bad; I don't know what the valid > ranges for channels and ysize are, but my reading of that is that your > file's completely corrupt, maybe even malicious. PIL probably ought to > check these things, so there may be a tracker issue coming from this, > but I'd be inclined to declare any thrown exception as meaning it's a > bad file. Call it "failed a security check" perhaps. > > ChrisA > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list