I am resizing png's, trying to get a negligible quality loss and preserve the filesize. The images have 67 colours, including black and white and a 64 element colormap with a linear colour distribuition in RGB space from red to blue (jet). The images are contour maps and as such have very smooth transitions in colour over most of the image.
When I try the following:
Code: Select all
convert -trim -border 20 -bordercolor white -resize 60% -depth 8 -colors 67 test.png test2.png
I get an unacceptable amount of dithering. My first question is how to a fix the dithering. My second question is how do I force the resized pngs to use the exact same colourmap as the original?
Thanks.