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

Hello, I'm building a gallery CGI app. Since most servers have GD installed, I wanted to install this too so I could use it to autocreate the thumbnails. However, I downloaded GD.ppd from the winnipeg university pages (win32) only to find that GD::Image is not included. GD itself can't even be found on the ActiveState repositories. I am out of options. Someone knows what happened to GD ??? info : running ActiveState perl 5.8.x on win32 Thanks for hinting me ! Edit/Delete Message

Replies are listed 'Best First'.
Re: GD::Image gone from GD ??
by BrowserUk (Patriarch) on Jan 09, 2005 at 18:51 UTC

    GD::Image is an integral part of GD.pm. When you use GD;, you get GD::Image also.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.
      That's what I thought when looking at the docs too. However, GD cannot be found on Activestate, but I found it on http://theoryx5.uwinnipeg.ca/ppms/. When you install, however, there is NO GD::Image included. Included are ::Simple and ::Polyline, but not ::Image. How frustrating :-(

        I think you misunderstand me.

        There is no separate file for GD::Image. All the code that makes up the GD::Image 'package' is in the file GD.pm.

        Once you have installed GD from the PPM, you have also installed GD::Image. Just use it. It is there.

        If you have installed GD, then try this:

        perl -MGD -le "$img = GD::Image->new()"

        That will run without error and create an instance of GD::Image.


        Examine what is said, not who speaks.
        Silence betokens consent.
        Love the truth but pardon error.
Re: GD::Image gone from GD ??
by diotalevi (Canon) on Jan 09, 2005 at 19:31 UTC
    GD::Image comes inside the GD.pm file. There is no separate GD/Image.pm file. There is no separate GD::Image documentation. Read GD instead.