"Peter Pimley" on  wrote...
| 
| Hello IMers.
| 
| I have a 32x32 pixel RGBA image (in TGA format).  It contains 4 colors,
| namely:
| 
|   Colors: 4
|   Histogram:
|        528: ( 74,  0, 61,212) #4A003DD4 rgba(74,0,61,0.831373)
|        445: ( 74,  0, 61,211) #4A003DD3 rgba(74,0,61,0.827451)
|         48: ( 74,  0, 61,210) #4A003DD2 rgba(74,0,61,0.823529)
|          3: ( 74,  0, 61,209) #4A003DD1 rgba(74,0,61,0.819608)
| 
| If I do "convert -colors 256 -type TrueColorMatte input.tga output.tga",
| then I'd expect output.tga to look at least very similar to input.tga.
| In a perfect world they'd be pixel-perfect copies.  As it is, I'm
| getting some unexpected behaviour.
| 
Please try it again but using the right option ordering...
That is read the image THEN apply the image operation.

    convert input.tga -colors 256 output.tga

I do not know if your  -type TrueColorMatte  is for the input image
or for the output image.  It should not be needed in any case.

Also Im should NOT reduce the number of colors in an image IF the image
only contains that many colors or less already.

So if the above is your histogram, then it should not change anything.

However if colors do need to be merged together, then semi-transparent
colors are always thought of as 'closer' to each other than fully-opaque
colors.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   They may have been stolen, or they may have walked away on their own.
   Books constantly seem to be walking out of libraries.
                               -- Jody Lynn Nye, "Encyclopedia of Xanth"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to