in reply to GD Error: Can't locate object method 'new FromJpeg'

The GD library can be compiled with or without JPEG, XPM, PNG, Freetype, etc.

Likewise for the GD module (which has some config options when you compile it.

The config script asks for JPEG, Freetype, and XPM support options; if you didn't answer yes for the JPEG, you don't get support.

Anyway, does this work? (provide your own JPEG filename):

use strict; use GD; my $img = GD::Image->newFromJpeg("/home/ned/Champagne.jpg");

Replies are listed 'Best First'.
Re: Re: Dumb question #1 - GD
by lnl (Pilgrim) on Jun 04, 2001 at 08:39 UTC
    bikeNomad:

    No, it does not work (same error)
    Does it sound like the GD library was compiled without JPEG?

    This was not my doing... I am using a hosting service with a large set of modules pre-installed.
    This would not be the first time...

        Thanks, I'll pass that along to my support.

        Actually, I am not using ImageMagick.
        It's Imagex... just to create thumbnails on the fly.