Pyexiv2 crashes on color indexed png
Bug #236462 reported by
Zdeněk Dlauhý
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
High
|
Stani | ||
phatch (Ubuntu) |
Fix Released
|
Undecided
|
Stani |
Bug Description
Hi, when i try to work with any indexed color png file, the phatch gives me an error and doesnt work. When i in gimp transform the color to RGB evrything is alright. So what i must do to get it work with indexed png file? Maybe color convert mod to RGB? or what?
i attach the test files
To post a comment you must log in.
Most actions only work on RGB images. So just like in Gimp, you should first add a convert action to RGB or RGBA (if transparency is needed). You can add the convert action by pressing the + toolbar button and select colours from the top right drop down box. Then you will see the "convert mode" action.
That said, I tested this with your image and I see pyexiv2 crashes on it when trying to fetch metadata. So this is a serious bug. I'll fix it as soon as possible.
This is the output of the error log window: python2. 5/site- packages/ phatch/ core/api. py", line 234, in get_photo image_file, image_index, save_metadata, folder) python2. 5/site- packages/ phatch/ core/pil. py", line 295, in __init__ init_info( layer,filename, image_index, save_metadata, folder) python2. 5/site- packages/ phatch/ core/pil. py", line 312, in init_info info(self. info_original, layer.image, location, image_index, folder) python2. 5/site- packages/ phatch/ core/pil. py", line 218, in extract_info info_pyexiv2( info,location) python2. 5/site- packages/ phatch/ core/pil. py", line 153, in extract_ info_pyexiv2 readMetadata( )
Traceback (most recent call last):
File "/usr/lib/
photo = pil.Photo(
File "/usr/lib/
self.
File "/usr/lib/
extract_
File "/usr/lib/
extract_
File "/usr/lib/
image.
IOError: Failed to read image data