piecemaker icon indicating copy to clipboard operation
piecemaker copied to clipboard

sprite_with_padding - transparency?

Open dakom opened this issue 2 years ago • 1 comments

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?

dakom avatar Feb 27 '22 18:02 dakom

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.

jkenlooper avatar Feb 28 '22 04:02 jkenlooper