Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 25 by
eric.p...@gmail.com: TIFF.read_image() fails to read RGB
images
http://code.google.com/p/pylibtiff/issues/detail?id=25
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/94eabe3b063d1d245d46c67adbe91604b944ba0e
Attachments:
0001-support-reading-back-RGB-images.patch 4.0 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings