I’ve got Color Mode set to Indexed and my palette size is 256 colors. However, when I save as PNG or Export as PNG, the resultant file is saved as a 32 bit per pixel (32bpp) image … when I need it to be an 8 bit per pixel (8bpp) image. Any ideas? Thanks
its 8 for red, 8 for green, 8 for blue, and since png supports transparancy so its 8 more for alpha, aka transparency which equals to 32bpp, bitmap might work but you will have to do further research i think.
If this is still going on, providing more details might help. For example,
- Aseprite version
- export settings
- sprite transparent color (index in the palette and RGBA channels)
- whether the palette contains transparent and/or translucent color swatches
- whether the sprite has a background layer
- whether cel or layer opacity have been set to values other than 255 (100%)
- whether layer blend modes other than “normal” are used
A screen shot or two of the entire Aseprite window can provide this info at a glance.
From what I could find so far, the Export for Twitter setting will change the png format to RGBA even when the sprite color mode is indexed. However, this only happened when I exported, not when I saved. So maybe there’s more than one way the format can be changed.
In the bottom left corner, the eye dropper shows that the alpha for white has been set to 254. The palette has been shortened by a few swatches.
Below are some links in the source code where I found this out:
Many thanks for your detailed reply.
It was (I think) a transparency issue so thanks to both. The issue was arising because I was using a 32 bit PNG as a base, then attempting to reduce the colour depth by changing colour mode to indexed, removing transparency etc, then Exporting or Save As.
I solved this by creating a new (blank) indexed image in Aseprite, then cutting and pasting the existing 32 bit PNG into that new image. Exporting or saving as PNG then worked as expected (8bpp rather than 32bpp).
Thanks again.