PNG with indexed palette
Posted: 2010-12-06T04:10:24-07:00
I have a PNG image containing only two colors in its palette. I need to change these two colors from certain rgb values to certain other rgba values. I can easily achieve this, but it is very slow. I think the time is spent rebuilding the color table. Is there a fast way to poke new values into the color table?
If not, I'll take the 10x increase in file size for the 10x speedup. -type TrueColorMatte still leaves me in indexed palette mode. -define png:color-type=6 does take me to true RGBA. What does -type do?
If not, I'll take the 10x increase in file size for the 10x speedup. -type TrueColorMatte still leaves me in indexed palette mode. -define png:color-type=6 does take me to true RGBA. What does -type do?