Opened 19 years ago

Closed 19 years ago

#6545 closed defect (fixed)

Can't locate object method "png" via package "GD::Image"

Reported by: pterry2@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: markd@…
Port:

Description

Overview:

philip-terrys-power-mac-g5:~ mterry$ ./perldoc_GD_example.pl Can't locate object method "png" via package "GD::Image" at ./perldoc_GD_example.pl line 34. philip-terrys-power-mac-g5:~ mterry$

Steps to reproduce:

Using DarwinPorts on a G5 Mac with OS X 10.4.4, I installed the following ports:

jpeg, v6b zlib 1.2.3 freetype 2.1.9 libpng 1.2.8 gd2 (libgd, boutell) 2.0.33 p5-gd (GD.pm, Lincoln Stein) 2.28

At this point, I tried a sample pgm to test the system to this point. I got an error:

philip-terrys-power-mac-g5:~ mterry$ ./perldoc_GD_example.pl Can't locate object method "png" via package "GD::Image" at ./perldoc_GD_example.pl line 34. philip-terrys-power-mac-g5:~ mterry$

The example pgm was:

#!/opt/local/bin/perl

#A Simple Example: #####!/usr/local/bin/perl

use GD;

# create a new image $im = new GD::Image(100,100);

# allocate some colors $white = $im->colorAllocate(255,255,255); $black = $im->colorAllocate(0,0,0); $red = $im->colorAllocate(255,0,0); $blue = $im->colorAllocate(0,0,255);

# make the background transparent and interlaced $im->transparent($white); $im->interlaced('true');

# Put a black frame around the picture $im->rectangle(0,0,99,99,$black);

# Draw a blue oval $im->arc(50,50,95,75,0,360,$blue);

# And fill it with red $im->fill(50,50,$red);

# make sure we are writing to a binary stream binmode STDOUT;

# Convert the image to PNG and print it on standard output print $im->png;

The error refers to the last line of the pgm.

Expected results:

# Convert the image to PNG and print it on standard output

Build date & platform:

G5 Mac with OS X 10.4.4

Change History (3)

comment:1 Changed 19 years ago by olegb@…

severity: blockernormal

this is not a blocker - normalize

comment:2 Changed 19 years ago by markd@…

Cc: markd@… added

Bumped p5-gd to v2.32. See if that fixes the problem.

comment:3 Changed 19 years ago by markd@…

Resolution: fixed
Status: newclosed

If after the update you still find the problem please reopen the bug.

Note: See TracTickets for help on using tickets.