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

Anthony Thyssen A.Thyssen at griffith.edu.au
Tue Apr 28 16:32:51 PDT 2009


On Tue, 28 Apr 2009 15:33:45 +0100
"Roger Lee, NOTiFY" <rlee at notify.co.uk> wrote:

| 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?
| 
What version of IM?

Can you put the image online somewhere so we can download and test
against the latest release?


Fred:  dither setting should make no difference, it is supposed to
represent the method by which IM decides what pixel gets what color
so as to produce the best representation of the original image using
the reduced color scheme.


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
  Nothing Gives a Damn.  Life is far too brief, existance is meaningless
  and the universe has no purpose.     -- Dean Alan Foster, `` Glory Lane ''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list