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

sprite_with_padding - transparency? #16

Open
dakom opened this issue Feb 27, 2022 · 1 comment
Open

sprite_with_padding - transparency? #16

dakom opened this issue Feb 27, 2022 · 1 comment

Comments

@dakom
Copy link

dakom commented Feb 27, 2022

For using a rasterized spritesheet, there are two sets of files: sprite_with_padding and sprite_without_padding

Is there a reason why sprite_with_padding is JPG (without transparency) and sprite_without_padding is PNG (with transparency)?

I'd think that for rendering out as a sprite sheet, both should be PNG?

@jkenlooper
Copy link
Owner

The JPG format is better on image file size compared to PNG. Of course there is a trade-off with JPG not supporting transparency, but that is why the SVG mask clipping can be used. Again, I think more documentation and visuals would help explain this better. Both sprites can be used depending on the use case really.

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

No branches or pull requests

2 participants