Convert png to png8 and detect background color
Posted: 2016-07-03T04:16:57-07:00
I want to convert a 24bit images png. bmp etc to 8bit png and always detect the background color and set it as color #1 of the palette in a color map, so that it automatically become sthe binary transparency of an image. In the past irfanview did that but now it always gives me a wrong color:
is there a command that can preserve to good quality a Png, and always detect the background color, if not detect the pixel at the upper left corner, i can always set it to the color i want. Command line is fine, gui is even better. I decided to try this when irfanview doesn't do it right. For the png quality some programs like gimp do not make that good quality png, I like irfanview's quality when you decrease color depth and i wonder of this imagemagick can do the same quality and palette as i like.
is there a command that can preserve to good quality a Png, and always detect the background color, if not detect the pixel at the upper left corner, i can always set it to the color i want. Command line is fine, gui is even better. I decided to try this when irfanview doesn't do it right. For the png quality some programs like gimp do not make that good quality png, I like irfanview's quality when you decrease color depth and i wonder of this imagemagick can do the same quality and palette as i like.