Skip Menu |
 

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 68784
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: newFromXbm in docs but not code
Date: Mon, 13 Jun 2011 09:23:23 +1000
To: bug-GD [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 330b
With the debian packaged GD 2.46 and perl 5.12, a program use GD; GD::Image->newFromXbm('/dev/null') gets Can't locate object method "newFromXbm" via package "GD::Image" at foo.pl line 2. That func is in the POD, is it meant to be in the code? (I see _newFromXbm exists ...) -- Even the white bits were black.
Download (untitled) / with headers
text/plain 908b
On Sun Jun 12 19:23:31 2011, user42@zip.com.au wrote: Show quoted text
> With the debian packaged GD 2.46 and perl 5.12, a program > > use GD; > GD::Image->newFromXbm('/dev/null') > > gets > > Can't locate object method "newFromXbm" via package "GD::Image" at > foo.pl line 2. > > That func is in the POD, is it meant to be in the code? > (I see _newFromXbm exists ...)
Ouch Many more are missing, have the wrong PREFIX: gd_new(packname="GD::Image", x=64, y=64, ...) gd_newFromPng(packname="GD::Image", filehandle, ...) gd_newFromXbm(packname="GD::Image", filehandle) gd_newFromGd(packname="GD::Image", filehandle) gd_newFromGd2(packname="GD::Image", filehandle) gd_newFromJpeg(packname="GD::Image", filehandle, ...) gd_newFromWBMP(packname="GD::Image", filehandle) gd_newFromGd2Part(packname="GD::Image", filehandle,srcX,srcY,width,height) gd_newFromGif(packname="GD::Image", filehandle) I'll fix it -- Reini Urban
Download (untitled) / with headers
text/plain 1.1k
On Fri Apr 21 07:29:12 2017, RURBAN wrote: Show quoted text
> On Sun Jun 12 19:23:31 2011, user42@zip.com.au wrote:
> > With the debian packaged GD 2.46 and perl 5.12, a program > > > > use GD; > > GD::Image->newFromXbm('/dev/null') > > > > gets > > > > Can't locate object method "newFromXbm" via package "GD::Image" at > > foo.pl line 2. > > > > That func is in the POD, is it meant to be in the code? > > (I see _newFromXbm exists ...)
> > > Ouch > Many more are missing, have the wrong PREFIX: > > gd_new(packname="GD::Image", x=64, y=64, ...) > gd_newFromPng(packname="GD::Image", filehandle, ...) > gd_newFromXbm(packname="GD::Image", filehandle) > gd_newFromGd(packname="GD::Image", filehandle) > gd_newFromGd2(packname="GD::Image", filehandle) > gd_newFromJpeg(packname="GD::Image", filehandle, ...) > gd_newFromWBMP(packname="GD::Image", filehandle) > gd_newFromGd2Part(packname="GD::Image", filehandle,srcX,srcY,width,height) > gd_newFromGif(packname="GD::Image", filehandle) > > I'll fix it
Actually no. These interim methods are used to convert a filename to a PerlIO handle. Missing was only Xpm due to a typo, and WBMP. Fixed -- Reini Urban


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.