gifencoder icon indicating copy to clipboard operation
gifencoder copied to clipboard

How to support transparent background?

Open xiandanin opened this issue 7 years ago • 11 comments

Two transparent PNG synthesis becomes black

xiandanin avatar Mar 03 '17 16:03 xiandanin

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

JakeWharton avatar Mar 03 '17 16:03 JakeWharton

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

xiandanin avatar Mar 03 '17 16:03 xiandanin

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

JakeWharton avatar Mar 03 '17 16:03 JakeWharton

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 avatar May 07 '20 13:05 ToxicMushroom

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

ToxicMushroom avatar May 07 '20 13:05 ToxicMushroom

any update on this?

amarkovits avatar Jun 22 '20 14:06 amarkovits

@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.

ToxicMushroom avatar Jun 23 '20 20:06 ToxicMushroom

@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.

zeng1990java avatar Dec 28 '20 07:12 zeng1990java

@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

ToxicMushroom avatar Dec 28 '20 12:12 ToxicMushroom

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

jonatino avatar Jul 15 '22 05:07 jonatino

@ToxicMushroom hey man, please, create a PR

dukhevych avatar Jul 10 '23 01:07 dukhevych