Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Simple RGB Graphics in Perl

by Evanovich (Scribe)
on Apr 29, 2003 at 21:34 UTC ( [id://254108]=note: print w/replies, xml ) Need Help??


in reply to Re: Simple RGB Graphics in Perl
in thread Simple RGB Graphics in Perl

Imager definitely looks like the way to go for me. However, I have one other thing I hope someone can help me with: I installed imager but is says that it only can support .bmp and .ppm (along with some other useless image types). I'd really like to have .jpg and .tif support. Can someone help me figure out how to do this? Do I need to find a jpeg and tiff library? And will I need to reinstall Imager.pm? The module seems great, but the documentation is a little spotty at the moment....

Replies are listed 'Best First'.
Re: Re: Re: Simple RGB Graphics in Perl
by claes (Acolyte) on Apr 30, 2003 at 07:42 UTC
    Imager is really nice. If you want support for reading/writing JPEG, PNG, GIF and TIFF you'll need to install a couple of extra libraries. Check the README file that comes with Imager to see where you can download them. To support drawing text, you'll also need t1lib and/or freetype(2) unless you're on Win32 where Imager can take advantadge of GDI.

    On some platforms, I've found some struggle installing Imager but on linux it usually justs DWIMS. Environment IM_LIBPATH and IM_INCPATH are your friends when installing. And yes, you need to rebuild and reinstall Imager when you add support for these libraries.

    If you want to find out what formats your Imager installation supports, there is a %Imager::formats hash that contains the different filetypes and font-lib support

    /Claes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found