Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIFF incorrect colours #1270

Closed
radarhere opened this issue Jun 9, 2015 · 2 comments
Closed

TIFF incorrect colours #1270

radarhere opened this issue Jun 9, 2015 · 2 comments
Labels
Bug Any unexpected behavior, until confirmed feature. TIFF

Comments

@radarhere
Copy link
Member

In case anyone wants to investigate this, I've found a TIFF that Pillow reads with the incorrect colours.

The linked image is black text on white writing. Pillow views it as green writing on a pink background.

To reproduce, just open the image and show it.

http://www.nightprogrammer.org/wp-uploads/2013/02/multipage_tiff_example.tif

@hugovk hugovk added Bug Any unexpected behavior, until confirmed feature. TIFF labels Jun 9, 2015
@wiredfool
Copy link
Member

Looks like from the format key, we're interpreting this as an RGB image, but there's a tag (#530, YCbCrSubSampling) which seems to indicate that it's in YCbCr mode.

I'd have to dig deeper to see if there are any other indications that the data isn't in RGB mode.

@hugovk
Copy link
Member

hugovk commented Mar 15, 2018

Fixed in #2899.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature. TIFF
Projects
None yet
Development

No branches or pull requests

3 participants