Skip to content

Issue with Transparency on Gifs #1438

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

Open
Vesrimm opened this issue Mar 18, 2017 · 2 comments
Open

Issue with Transparency on Gifs #1438

Vesrimm opened this issue Mar 18, 2017 · 2 comments
Labels
bug persistence Issues about loading or saving files / persisting information on disk

Comments

@Vesrimm
Copy link

Vesrimm commented Mar 18, 2017

I am attempting to create an animated sprite for my friend; one that uses transparency in one of the layers.
sans
This is the sprite normally, when it's not a gif. The flame is fine.
But when I turn it into a animated gif
sans
The flame (and my signature) completely disappears.

I'd appreciate some help on this; (as the transparency issue appeared on another one of my sprites as well)

Thank you.

Aseprite and System version

  • Aseprite version: v1.1.13, Steam
  • System: Windows 10
@Scrxtchy
Copy link

gifs don't have support for rgba values
you get up to 256 rgb colours, and you can use one of those a single transparency value

This is what it looks like in Photoshop's exporter, which should hopefully visualise this for you

@dacap dacap added bug persistence Issues about loading or saving files / persisting information on disk labels Apr 18, 2017
@Gasparoken
Copy link
Member

@Scrxtchy you are right. Aseprite takes a simple choice to determine if a color should be rendered as transparent or opaque:
If alpha < 128 ? then the pixel color is assumed transparent;
else: the pixel is opaque.
Maybe some alternative can be added:

  • Is alpha > configurable threshold ? then a color is assumed opaque.
  • Dithering between mask and an opaque colors to simulate colors with alpha < 255 (but maybe is too much).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug persistence Issues about loading or saving files / persisting information on disk
Projects
None yet
Development

No branches or pull requests

4 participants