Skip to content

Remove palette if no longer relevant after TIFF seek - #9855

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:tiff_palette
Open

Remove palette if no longer relevant after TIFF seek#9855
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:tiff_palette

Conversation

@radarhere

Copy link
Copy Markdown
Member

Resolves #9851

When a TIFF image seeks to a P or PA mode frame, it adds a palette. However, if the image then seeks to a frame with a different mode, the palette is not removed. This fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading n_frames corrupts subsequent loading of mixed RGB/P LZW TIFF frames

1 participant