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

Flag to remove transparency #149

Open
retep998 opened this issue Dec 10, 2019 · 5 comments
Open

Flag to remove transparency #149

retep998 opened this issue Dec 10, 2019 · 5 comments

Comments

@retep998
Copy link

When processing a gif with gifsicle I'd like to be able to remove the transparency and replace it with a solid background color. Can a flag be added to do this? If this is already possible then can the documentation be improved to describe this use case? Thanks.

@kohler
Copy link
Owner

kohler commented Dec 13, 2019

I think --no-transparent is what you're looking for, but that might not suffice. Try it though.

@retep998
Copy link
Author

It does remove the transparency, but it doesn't let me choose what color to replace it with. If I use --no-transparent in combination with --background, it does not use the background color I specified to replace the transparency.

@kohler
Copy link
Owner

kohler commented Dec 14, 2019

If you post your GIF here I can maybe take a look

@retep998
Copy link
Author

For example, this random transparent gif: pony

I execute .\gifsicle.exe --no-transparent --background "#000000" pony.gif -o pony2.gif

The result has a white background and not a black background: pony2

@retep998
Copy link
Author

Here is another example gif which shows how --no-transparent is not what I want. It removes the transparency from each individual frame before doing compositing resulting in horrifying artifacts.
shiba
shiba2

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

No branches or pull requests

2 participants