Color reduction bug with dithering
Posted: 2009-06-22T09:43:32-07:00
Hi,
I'm trying to use Imagemagick to convert some textures for some game to 256 colors automatically. So I've taken imagemagick for the job since I've heard lots of good things from it. Unfortunatly, I'm often hiting problems with it related to quality or non standard work I'm asking it to do (color reduction on a picture with semi transparent pixels). Okay, I can work with bad quality as long as the game runs now and I know the artists will do it later by hand with I hope better quality for certain pictures.
But the last problem I'm having is really weird and I guess it's worth a bug report.
I'm trying to convert this picture here
It contains semi transparent pixels, some fully transparent and represent two crappy arts of a background with progressively faded edges.
Running : "convert orig.png -colors 256 orig256.png" or "convert orig.png -dither riemersma -colors 256 orig256riemersma.png" gives me this
Running : "convert orig.png -dither floydSteinberg -colors 256 orig256floyd.png" gives this
Oddly, if I apply the "posterize 8" option, I get acceptable results. There are still little "white" holes in the picture as I often get with other converted pictures (I can send some samples later if you want for this).
I'm running ImageMagick 6.5.3-2 2009-06-01 Q16 OpenMP on Windows XP. I can upgrade to check the latest revision, but the changelog hasn't reported anything I suspect to be linked to this problem.
Best regards,
Orphis
I'm trying to use Imagemagick to convert some textures for some game to 256 colors automatically. So I've taken imagemagick for the job since I've heard lots of good things from it. Unfortunatly, I'm often hiting problems with it related to quality or non standard work I'm asking it to do (color reduction on a picture with semi transparent pixels). Okay, I can work with bad quality as long as the game runs now and I know the artists will do it later by hand with I hope better quality for certain pictures.
But the last problem I'm having is really weird and I guess it's worth a bug report.
I'm trying to convert this picture here
It contains semi transparent pixels, some fully transparent and represent two crappy arts of a background with progressively faded edges.
Running : "convert orig.png -colors 256 orig256.png" or "convert orig.png -dither riemersma -colors 256 orig256riemersma.png" gives me this
Running : "convert orig.png -dither floydSteinberg -colors 256 orig256floyd.png" gives this
Oddly, if I apply the "posterize 8" option, I get acceptable results. There are still little "white" holes in the picture as I often get with other converted pictures (I can send some samples later if you want for this).
I'm running ImageMagick 6.5.3-2 2009-06-01 Q16 OpenMP on Windows XP. I can upgrade to check the latest revision, but the changelog hasn't reported anything I suspect to be linked to this problem.
Best regards,
Orphis