Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl API for graphics manipulation

Many formats to JPG

         

PhraSEOlogy

4:43 pm on Dec 5, 2005 (gmt 0)

10+ Year Member



Hi,

I need to take images from many vendors and reformat them. I am going to use GD to alter size shape etc. But is there a perl module that converts many image formats to say .jpg before I do the manipulation.

I really need this automated - too many images to do manually. Hence wanting to use a perl script to do the hard work.

rocknbil

7:39 pm on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ImageMagick in combination with perlmagick should do the trick, it can read, convert, and resize just about any bitmap format including TIFF, EPS, and can even read/convert CMYK to RGB if you have the right color profiles loaded. In fact, you may want to just dump the GD methods as you can do a lot of GD functions right in ImageMagick, including superimposing type, working with PostScript type, filters, and more. Start at Imagemagick.org.

PhraSEOlogy

4:20 am on Dec 8, 2005 (gmt 0)

10+ Year Member



Rocknbill,

Thanks for the reply. Did some research on this and I do need to convert some eps files so imagemagick would do the trick. Can't install the perl module on my dedicated server though - makefile errors.

I will do some more hacking to see if I can get it to work.

PhraSEOlogy

4:01 am on Dec 9, 2005 (gmt 0)

10+ Year Member



Installed the red-hat rpm and it works fine.