Magic++: Expanded color map not written to file #336
Replies: 3 comments
-
Is this a bug, or am I "doing it wrong"? I am simply trying to add a color to the color map at index #0. |
Beta Was this translation helpful? Give feedback.
-
It might be possible that the PNG coder will remove the color unless it is used in the image. What happens when you set one of the pixels to that color? |
Beta Was this translation helpful? Give feedback.
-
Haven't tried, but it is not usable workaround, as then you need to have a pixel you don't need in the image... :/
But this doesn't work either. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using Magic++ 6.9.7.4+dfsg-16ubuntu6.4 amd64 on Ubuntu 18.04.2.
When I load a 8-bit paletted PNG, resize the color map and write to the file again the color map still has the same size, not the expanded size as expected. This also happens if I I set the expanded, previously unused entries.
Example code:
I also tried calling img.modifyImage() before and img.syncPixels () afterwards, but that didn't change anything. There's no need to expand the color map. A simple swap of color map entries refuses to work for me...
Beta Was this translation helpful? Give feedback.
All reactions