Magic++: Expanded color map not written to file #336
Unanswered
HorstBaerbel
asked this question in
General
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. |
0 replies
|
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? |
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...
All reactions