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

imagetool: Transparent frame updates #45

Open
cfcs opened this issue Jan 16, 2021 · 1 comment
Open

imagetool: Transparent frame updates #45

cfcs opened this issue Jan 16, 2021 · 1 comment
Assignees
Labels

Comments

@cfcs
Copy link
Collaborator

cfcs commented Jan 16, 2021

After merging #43 we now have better support for transparency in the GIF format.

The imagetool however should be updated to not paint the background color in transparent pixels in animated GIFs when they are painting on top of an opaque pixel. Basically we should replace transparent pixels in the first frame with the --background color, and after that we should probably skip the painting of transparent pixels.

The NETSCAPE extension (aka "animated GIFs") to the GIF format carries some hints like DO NOT DISPOSE that govern the semantics of whether transparent pixels should yield the previous frame content or revert to a keyframe (like the first frame) or actually be transparent in the output. This needs to be investigated and support implemented.

@cfcs cfcs added the bug label Jan 16, 2021
@cfcs cfcs self-assigned this Jan 16, 2021
@cfcs
Copy link
Collaborator Author

cfcs commented Jan 16, 2021

NB: Imagemagick doesn't handle this case either, so will need to find an implementation that does to provide a frame of reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant