square / gifencoder

A pure Java library implementing the GIF89a specification. Suitable for use on Android.
Apache License 2.0
664 stars 75 forks source link

How to support transparent background? #3

Open xiandanin opened 7 years ago

xiandanin commented 7 years ago

Two transparent PNG synthesis becomes black

JakeWharton commented 7 years ago

Transparency is not supported at this time and we have no plans on adding it. Someone can contribute it if they'd like.

xiandanin commented 7 years ago

If I change the Color class to ARGB, is it transparent?

JakeWharton commented 7 years ago

No. It requires supporting transparency throughout the whole encoding process.

ToxicMushroom commented 4 years ago

I've got some of it working in my fork but I'm having weird bleeding effects that change when I change the imageoptions

ToxicMushroom commented 4 years ago

the transparancy color is likely being touched by the ditherer and it's messing it up I'll see if I can fix this

amarkovits commented 4 years ago

any update on this?

ToxicMushroom commented 4 years ago

@amarkovits look at my fork, it supports transparency if you need it. Idk if a pr would ever make it since I changed quite a lot of code. I'm also not sure that this is still being maintained.

zeng1990java commented 3 years ago

@amarkovits look at my fork, it supports transparency if you need it. Idk if a pr would ever make it since I changed quite a lot of code. I'm also not sure that this is still being maintained.

How can i get you code. I need that feature.

ToxicMushroom commented 3 years ago

@amarkovits look at my fork, it supports transparency if you need it. Idk if a pr would ever make it since I changed quite a lot of code. I'm also not sure that this is still being maintained.

How can i get you code. I need that feature. https://github.com/Melijn/gifencoder @zeng1990java

jonatino commented 2 years ago

@ToxicMushroom can you make a PR for this? Your jitpack build on your repo is broken and theres no way to use your changes.

dukhevych commented 1 year ago

@ToxicMushroom hey man, please, create a PR