amphiplex has asked for the wisdom of the Perl Monks concerning the following question:

Hi !

I want to do some image manipulation in perl, mainly creating thumbnails and rotating images. The packages that came to my mind for which perl interfaces are available are ImageMagick and Imlib.

I have got the impression that imlib is faster and wanted to test this, but I didn't find any way to set the picture quality (I'd like to create .jpg images) via Gtk::Gdk::ImlibImage.
Is this even possible with this packages ?

I would be thankful for pointers to other modules for image manipulation you have found useful, too.

Thanks,
---- amphiplex
  • Comment on setting quality in Gtk::Gdk::ImlibImage

Replies are listed 'Best First'.
Re: setting quality in Gtk::Gdk::ImlibImage
by broquaint (Abbot) on Jul 23, 2002 at 12:56 UTC
    I've had good experience with Image::Magick in terms of interface and the ability to DWIW. I'm not too sure if Gtk::Gdk::ImlibImage is the best way to do image manipulation since that's not it's primary function (which is loading images, and obtaining X-Windows drawables[1]) and it's not terribly portable. As for finding the the 'picture quality' all images are internally stored in 24-bit pixel data in RGBRGBRGB format, so the quality really only matters when you're outputting the image.
    HTH

    _________
    broquaint

    [1] taken from the docs, along with the the other extract in italics