I wanted to do some cool image processing applications in perl but am not aware if there exist libraries to read in an image file and then allow transformations to be done on them or will i have to use the standard method of doing some file processing based on the file format of pics i have to use !!

Replies are listed 'Best First'.
RE: image processing in perl
by steveAZ98 (Monk) on Aug 13, 2000 at 05:43 UTC
    Check out Image::Magick, I think it may be what you are looking for. Here is the homepage so you can check it out first.

    HTH
      Hello, If you don't mind a little inefficency, there's always the pbm,pbm,and ppm fgraphics file formats (respecitively 1-bit, grayscale, 24bit color) Takes 10 -- 120 seconds to completely understand the format, the higher number only if you've been recently hit on the head. They're perfect for those 3-am-and-I've-never-written- a-graphics-file sort of scenarios. And, xv can view these formats. If you need a more standard format, just run 'em through a conversion utility like Image Magick's convert . Barry --- Barry Isralewitz Theoretical Biophysics Group Beckman 3121 Office Phone: (217) 244-1612 Home Phone: (217) 337-6364 email: barryi@ks.uiuc.edu http://www.ks.uiuc.edu/~barryi
      Of course, Image::Magick is amazingly slow. I'd suggest GD instead (sometimes up to 100x faster). If we *really* wanted speed we could (insert crazy scheme here)...

      --
      Leon Brocard.............................http://www.astray.com/
      yapc::Europe - September 22-24 London - http://yapc.org/Europe/

RE: image processing in perl
by Jouke (Curate) on Aug 17, 2000 at 11:09 UTC
    It depends on what exactly you want to do. But a good start would be GD.pm. With that package you can draw almost anything, and output it as JPG or PNG (GIF is not supported anymore since the Unisys guys started making a fuss about LZH compression...) HTH, Jouke Visser Perl Application Developer
RE: image processing in perl
by Anonymous Monk on Aug 18, 2000 at 17:08 UTC
    have you had a look at www.gimp.org. this provides an interface via perl to a Gimp.pm module, allowing various graphical functions to be carried out from with a perl script. You may however need a Uix/linux platform on which to run this.