in reply to Re: Which graphics format can Perl alter easier and more?
in thread Which graphics format can Perl alter easier and more?

Do be aware that GD is only able to handle 8-bits of color, and will 'posterize' (reduce the colors) of any higher-color image. For some cases, this may be acceptable, but is typically not the norm.

If you need better color support, you'll probably have to go with a module like Image::Magick that uses the ImageMagick library to support nearly all popular formats and 24-bit+ color.

I do wonder, now that I think about it, on the usefulness of a perl mod to handle 'object-oriented' raster imaging, similar to how the Macintosh PICT format is handled; objects would be stored nicely in XML until the need to be render is needed, and then backend off something like Image::Magick to actually do the generation.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

  • Comment on Re: Re: Which graphics format can Perl alter easier and more?

Replies are listed 'Best First'.
Re: Re: Re: Which graphics format can Perl alter easier and more?
by Jouke (Curate) on Aug 12, 2001 at 18:31 UTC
    I used GD just as an example. It's one of the available graphics manipulation modules for Perl, just to explain that there is no graphical fileformat that Perl handles better or worse.

    Jouke Visser, Perl 'Adept'
    Using Perl to help the disabled: pVoice and pStory
Re: Re: Re: Which graphics format can Perl alter easier and more?
by bladx (Chaplain) on Aug 12, 2001 at 18:34 UTC
    Ok, so would Image::Magick also support altering the appearance of .jpgs as well? I am interested in being able to alter the look of .jpgs besides .pngs also.

    Is there a way to do this?

    Andy Summers