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

I asked a client's webhost to install Image::Magick or, failing that, GD. Here's what they said...

"We currently have the GD installed on the server for use with PHP, I'm not sure this would run with Perl, but I can't any problems. If you can find the details for Perl, I'll make sure it's set-up."

Is this nonsense it sounds like to me? What should I tell them?

All I am trying to do is extract width and height info from a bunch of (well, several thousand) JPEGs. It might be easier to grab 'em onto my own server with LWP and get the measurements that way. Is there a way I can do this without actually transferring the files? Blessings, Brethren.

  • Comment on Is GD for PHP anything to with our own dear GD?

Replies are listed 'Best First'.
Re: Is GD for PHP anything to with our own dear GD?
by Zaxo (Archbishop) on Oct 08, 2002 at 19:05 UTC

    That should work, Perl GD is a wrapper around libgd.so. That must be present for the PHP GD to work, and the library is agnostic about who calls it. The host has offered to install Perl GD if you do the legwork, so take them up on it.

    If you verify the version of GD which will work with the host's libgd, mail them the CPAN package url and enough excerpts from the INSTALL and README to make it easy for them.

    After Compline,
    Zaxo

Re: Is GD for PHP anything to with our own dear GD?
by zigdon (Deacon) on Oct 08, 2002 at 18:42 UTC

    if you could get your host to install Image::Info, you could use that - it's much smaller and lighter than ImageMagick, and will do what you require.

    -- Dan