Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Suggestion - Image processing..

by balayya (Initiate)
on Nov 26, 2006 at 12:34 UTC ( [id://586096]=perlquestion: print w/replies, xml ) Need Help??

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

Happy to meet you all !

I have a small question for you. Not sure whether it's fit to be posted here. but it's still an unanwered question for me.

I need to process some JPG and TIFF images in Windows NT. In specific I wish to do these things:

1. Read the image.
2. Create a new image.
3. Drawing text, shapes(of simple structures), another image or a part of it, etc... on a new image.
4. clipping the image.
5. Resizing the image. (Zoom +/-)
6. Compress/Uncompress images (guess, this doesn't belong to this category.)

I am not writing this without any preliminary search in CPAN. I have gone through Image::Magick, but I wish to use this took for commercial use, by which I mean developing a static application(using Perl/Tk) for an inhouse project in my company. So, I am not sure whether I can use ImageMagick or not. If I can use ImageMagick, I have all the answers to my questions above.

I have also gone through Imager module. I think it serves the purpose. But, the thing is I have to process thousands of images a day through my application. I am bothered abouth the performance.

So, if any of you have used Imager or ImageMagick or any other modules, which is absolutely free, to process images like the above six I have mentioned??

Note: This is on Windows NT x86 machines.


Thanks a lot in advance!

P.S: If this doesn't belong to this mailing list, plz excuse me and I would be glad if you could guide me.

Replies are listed 'Best First'.
Re: Suggestion - Image processing..
by Joost (Canon) on Nov 26, 2006 at 13:05 UTC
Re: Suggestion - Image processing..
by zentara (Archbishop) on Nov 26, 2006 at 13:46 UTC
    Hi, here is a start for you, I modified a little scribble program I had, ztk-mapper, to accept an image, so you can freehand draw on the image with a left-mouse-drag, and a right click allows you to insert text. You can use it with ImageMagick, GD, or Imager to size, scale, cropt, etc. I prefer Imager myself.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Suggestion - Image processing..
by tonyc (Friar) on Nov 30, 2006 at 23:38 UTC

    If you're worried about the performance of scaling in Imager you might want to upgrade to the most recent version and use the 'mixing' scaling method. This is significantly faster than the default. eg.

    my $scaled = $src->scale(qtype => 'mixing', xpixels => 100, ypixels => 100, type => 'min');

Log In?
Username:
Password:

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

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

    No recent polls found