TIFF.read_image() fails to read RGB images
Closed this issue · 1 comments
GoogleCodeExporter commented
TIFF.read_image() only works with grey-scale images. When attempting to read a
RGB image, it only returns the R channel (in separate plane config) or the
first third of the data (in contiguous plane config).
The SamplesPerPixel field must be taken into account, and if it's more than 1,
the returned array must be a 3D array.
This is what the attached patch does. It handles both contiguous and separate
plane configs.
The patch is also available as a git commit here:
https://github.com/delmic/pylibtiff/commit/94eabe3b063d1d245d46c67adbe91604b944b
a0e
Original issue reported on code.google.com by eric.p...@gmail.com
on 5 Aug 2013 at 2:17
Attachments:
GoogleCodeExporter commented
Thanks! Patch is applied to svn.
Original comment by pearu.peterson
on 13 Sep 2014 at 10:17
- Changed state: Fixed