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

I am making a web site which is being hosted by a company which offers me a Unix telnet shell account. I am looking for a way to resize images, superimpose text on the images, and output them to HTML on the fly using Perl.

Image::Magick does both theses things, and the module GD seems like it does too, but GD will distort JPEGS since it outputs 8 bit images I understand.

Are these my only options?

I must admit that I'm feeling daunted by the steps I may have to take to install Image::magick when I don't have the permissions to access anything outside of my shell. Is it even possible for me do do this? Installing the module is one thing, but then the library for perlmagick is quite another I understand?

Any advice out there?

Thanks!

  • Comment on JPEG resizing and superimposing text over the JPEG in Perl

Replies are listed 'Best First'.
Re: JPEG resizing and superimposing text over the JPEG in Perl
by goldclaw (Scribe) on Feb 23, 2001 at 04:10 UTC
    Just to make sure you know this: Adding text and/or rezising a jpeg will distort it, no matter which module you use. Thats because it has to be compressed again, and each time you do a jpeg compression you lose some quality.

    GD will of cource distort it even further because of its 8 bit conversion.

    Doing a search on search.cpan.org turned up the Imager module. Seems to be smaller than Image::Magick and has the features you need...

    GoldClaw

Re: JPEG resizing and superimposing text over the JPEG in Perl
by toadi (Chaplain) on Feb 23, 2001 at 16:02 UTC
    Try else a non perl solution. Look into column 29 from merlyn.
    He describes how you can do a image resize.
    I couldn't install the right modules. But I compiled the pmb tools in my schell and accessed them with perl.
    There's no need to try to do everything with perl :) ...

    --
    My opinions may have changed,
    but not the fact that I am right