Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

setting quality in Gtk::Gdk::ImlibImage

by amphiplex (Monk)
on Jul 23, 2002 at 10:28 UTC ( [id://184368]=perlquestion: print w/replies, xml ) Need Help??

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://184368]
Approved by vagnerr
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-28 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found