<font><font face="arial,helvetica,sans-serif">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.</font></font><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif">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.</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font><div><div>Vincent</div>
<br><br><div class="gmail_quote">On Sat, Oct 13, 2012 at 10:49 PM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Oct 14, 2012 at 3:36 PM, Vincent Davis <<a href="mailto:vincent@vincentdavis.net">vincent@vincentdavis.net</a>> wrote:<br>
> Oops, I was going to make note of the file size. 1.2MB<br>
<br>
</div>Then I'd definitely declare the file bad; I don't know what the valid<br>
ranges for channels and ysize are, but my reading of that is that your<br>
file's completely corrupt, maybe even malicious. PIL probably ought to<br>
check these things, so there may be a tracker issue coming from this,<br>
but I'd be inclined to declare any thrown exception as meaning it's a<br>
bad file. Call it "failed a security check" perhaps.<br>
<br>
ChrisA<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div></div>