[magick-users] Reducing number of Colo(u)rs

Roger Lee, NOTiFY rlee at notify.co.uk
Tue Apr 28 07:33:45 PDT 2009


I run the following command on my JPEG;

 

convert "Water lilies.jpg" -quantize YIQ -dither None -colors 3
"Water_Lilies_3_QYIQ_NO.jpg"

 

Expecting the "colors 3" parameters to reduce the image to just three
colours. 

 

When I read the image pixel by pixel and count and aggregate the RGBs I find
that there a lot more than three RGB combinations. Though there are
predominately three larger RGB combinations. 

 

What am I doing wrong?

 

Thanks 

 

Roger Lee



More information about the Magick-users mailing list