GD::Image Can't locate object newFromPng
Anton Berezin
tobez at tobez.org
Thu Jun 4 20:21:37 UTC 2009
On Thu, Jun 04, 2009 at 12:41:24PM -0700, Demonjack wrote:
>
> FreeBSD 7.0
> Perl 5.8.9
>
> I installed...
>
> libpng-1.2.36
> gd-2.0.35
> GD-2.41
>
> I made sure all compiled with PNG support. However, whenever I try and run
> the following line of code.
>
> my $myImage = newFromPng GD::Image(\*PNG); or alternatively....
> my $myImage = GD::Image->newFromPng($imgFile, 1)
>
> I get the following error.
>
> Can't located object method "newFromPng" via package "GD::Image" at blah
> blah blah.
>
> I'm sure it's something I've missed but I can't find it. At this point I've
> looked at it so much I can't see the forest for the trees.......
>
> Any help would be appreciated. I'm going to go take a nap.
Works fine here. Can you post a complete script that exhibits the problem?
Cheers,
\Anton.
--
There is no beauty in entropy. -- Eliezer Yudkowsky
More information about the freebsd-perl
mailing list