in reply to Image::Magick and colors

On this page of the docs, I don't see anything listed that seems to help you. But when I look at the convert docs, I get to the following page which defines their color-reduction algorithm.

Perhaps what you have to do is go through the color indices yourself, and copy certain values over others, thus reducing the number of unique colors in the image.


Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Image::Magick and colors
by geektron (Curate) on Jul 18, 2005 at 19:04 UTC
    you're correct. there's no immediately analogous Settable attribute listed there, but further down on the page ( underneath the table of Gettable attribs ) there is this little note:
    GetAttribute() is an alias for method Get().

    Most of the attributes listed above have an analog in convert. See the documentation for a more detailed description of these attributes.

    which leads me to believe there *is* a way ... but convert is the command-line util ...

    i'm *not* relishing reducing the color depth by dealing with the color indices ...

      I'd say you should try contacting the maintainers of ImageMagick (not the Perl module) and find out if they'll divulge the secret of convert's color-reduction.

      Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
      How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart