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

Piskel Background Transparency Not Working #547

Closed
Csyrian opened this issue Sep 16, 2016 · 3 comments
Closed

Piskel Background Transparency Not Working #547

Csyrian opened this issue Sep 16, 2016 · 3 comments

Comments

@Csyrian
Copy link

Csyrian commented Sep 16, 2016

I import a picture with a transparent background, animate it in Piskel, export it and the transparent background turns white.

This is my first time experiencing this and I've used Piskel multiple times prior with no issue.

Here's the animation: http://www.piskelapp.com/p/agxzfnBpc2tlbC1hcHByEwsSBlBpc2tlbBiAgID22vqjCww/view

But when I downloaded it and uploaded it to another site (deviantart), the background turns white: http://sta.sh/01kks0nvt9v4

I need to get this commission fixed soon. I hope this can be resolved.

Thanks!
-Chris

@epicabsol
Copy link
Contributor

I reproduced the issue. In the meantime, you could use GIMP to edit the gif to get output like the following:
hannahrhurstfloatchibicommission clone fixed

@juliandescottes
Copy link
Collaborator

Thanks for taking a look @epicabsol !

This sprite has ~1400 different colors, and I had to disable transparency in GIF exports for sprites that have more than 256 colors. (see issues #357 and #358)

The only workaround at the moment is to do what @epicabsol suggested.

I think we have a few options to improve this though:

  • display an error message when exporting a sprite with transparent pixels & more than 256 colors (with link to a wikipage explaining the issue, workarounds etc...)
  • let the user choose to keep transparency, even if it might screw up the output (with a checkbox in the export controller?)
  • perform a color reduction on our side before sending the sprite to gif.js, and submit 256 colors (including the transparent color)

@Csyrian
Copy link
Author

Csyrian commented Sep 16, 2016

Thanks so much! :'D The quick fix and immediate responses are really great. ♥

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

3 participants