Comment 2 for bug 236462

Revision history for this message
Stani (stani) wrote : Re: Phatch cannot manipulate with color indexed png

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:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/phatch/core/api.py", line 234, in get_photo
    photo = pil.Photo(image_file,image_index,save_metadata,folder)
  File "/usr/lib/python2.5/site-packages/phatch/core/pil.py", line 295, in __init__
    self.init_info(layer,filename,image_index,save_metadata,folder)
  File "/usr/lib/python2.5/site-packages/phatch/core/pil.py", line 312, in init_info
    extract_info(self.info_original,layer.image,location,image_index,folder)
  File "/usr/lib/python2.5/site-packages/phatch/core/pil.py", line 218, in extract_info
    extract_info_pyexiv2(info,location)
  File "/usr/lib/python2.5/site-packages/phatch/core/pil.py", line 153, in extract_info_pyexiv2
    image.readMetadata()
IOError: Failed to read image data