PDA

View Full Version : image manipulation in perl?


bazz
07-29-2004, 05:25 PM
I have been reading php and MySQL over the past few days and see that it can do a specific task that I require. However, I want to do it in perl so need some advice.

I will be providing a series of images for each client. some will be in 1:1 propriotions and others in differnt ones such as 16:9, 3:2 4:3 and other assorted ones.

Now the php script I saw can modify each image to a preferred size whilst maintaining the proportions and it also optimises them for the web. I have seent hat PHP can do this but if anyone can show me where to find one in perl, i would be very grateful. I have looked in hotscripts but didnt find one.

Why in Perl, well all of my site is in perl and I am not sure that I would be best to muddle the two?

Bazz

Bazz.

Calilo
07-29-2004, 05:39 PM
im quite sure you can do that in perl, but i have never done it, i helped a friend for doing a script that prints a logo over a picture so just the user sees the logo and the real picture is not affected.

but for doing this you have to install some perl modules, you can download at cpan.org

http://search.cpan.org/modlist/Graphics

there is the list of the perl modules that interact with images, there a plenty of them, if you read theire mans, youll understand how they work. image manipulation is not quite easy, but most of the modules simplify it.

hope it helps

Calilo

bazz
07-29-2004, 06:43 PM
Thank you Calilo. I shall research as you suggest :)

Bazz