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

Allow FLI palette chunk to not be first #6626

Merged
merged 1 commit into from Oct 12, 2022
Merged

Conversation

radarhere
Copy link
Member

Resolves #6624

At the moment, FliImagePlugin only loads the palette if it is the first chunk. While this is the case in our test images, the issue has uploaded images where this is not the case.

I used https://www.fileformat.info/format/fli/egff.htm#FLI-DMYID.3.1 as a reference. The test image was created by using hexeditting to swap the two chunks in existing test image hopper.fli.

@hugovk hugovk merged commit a275541 into python-pillow:main Oct 12, 2022
60 checks passed
@radarhere radarhere deleted the fli branch October 12, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FliImagePlugin cannot get colours
2 participants