depth1
-
Posts
1 -
Joined
-
Last visited
Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Export PNG palletized 2 colors with transparency
in V1 Bugs found on Windows
Posted · Edited by depth1
I forgot to change the title
Informations
Operating system and version : Windows 10
Is hardware acceleration ON or OFF? ON, same problem occurs when OFF.
Problem
I export in PNG format an image that includes a color (Red) and transparency.
To have the minimum size on disk, I would like to palletize the PNG.
According to my specifications I need:
- 2 colors in my PLTE chunk:
- Red
- Another color
- The tRNS chunk to set the Other color to alpha 0, and the Red to alpha 255.
Using the tools available on Affinity, it does not work correctly.
Red color is not properly palletized
It can be seen in detail in a tool like tweak-png:
And in fact,
If i change the red to alpha 255 with my original red in tweak-png,
the image is well rendered.
---
If I change the export with a palette of 4 colors the rendering is correct:
But i want 2 colors, not additionnal useless color, and by the way there are three colors not four:
Alternative solution ?
I think it's the Automatic palette export option that does some weird calculations
I saw that there was the possibility of put Custom palette option.
But when I select it I can't export; I got the message : "Error occurred when exporting...<my_file>"
Maybe it can be an alternative to what I want to do, maybe you know where to configure it ?
Thank you for your help!