Monday, 15 June 2015

wxpython display a corupted image -



wxpython display a corupted image -

does out there have process or solution displaying corrupted image using wxpython. clear image corrupted acdsee still able display (all displayed corrupted), default windows fax/image viewer can display image (all corrupted). when seek process image wx error , script stops:

image.thumbnail((newwidth, temp_height), image.antialias) file "c:\python27\lib\site-packages\pil\image.py", line 1559, in thumbnail self.load() file "c:\python27\lib\site-packages\pil\imagefile.py", line 215, in load raise_ioerror(e) file "c:\python27\lib\site-packages\pil\imagefile.py", line 52, in raise_ioerror raise ioerror(message + " when reading image file") ioerror: broken info stream when reading image file

i realize find error occurs , "skip" corrupted images rather able display them (than skip them) despite corruption, 2 programs mention above can. help/suggestions/guidance appreciated.

fyi. not downing wx, love it! ms paint cannot display image, gracefully fails , gives message image corrupted (the equivalent of skipping) , ms image manager hung on image. if consensus wx can't handle corrupted images willing take , add together "skipping" code corrupted images, wanted inquire question before did so.

i don't think wxpython supports currently. create kind of default broken image or message can display instead. might seek using python imaging library open image.

if can find open source image viewer work corrupt images, should take @ code see if patch wxpython.

image wxpython corrupt

No comments:

Post a Comment