Issue 25 in pylibtiff: TIFF.read_image() fails to read RGB images

13 views
Skip to first unread message

pyli...@googlecode.com

unread,
Aug 5, 2013, 10:17:58 AM8/5/13
to pylibtif...@googlegroups.com
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

pyli...@googlecode.com

unread,
Sep 13, 2014, 6:17:35 PM9/13/14
to pylibtif...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 25 by pearu.peterson: TIFF.read_image() fails to read
RGB images
https://code.google.com/p/pylibtiff/issues/detail?id=25

Thanks! Patch is applied to svn.
Reply all
Reply to author
Forward
0 new messages