Gossamer Forum
Home : General : Perl Programming :

jpeg problem with GD module

Quote Reply
jpeg problem with GD module
I am having a problem with the perl GD module (2.35)

Quote:
Can't locate object method "newFromJpeg" via package "GD::Image" at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/GD/Image.pm line 81.
I just installed libGD (2.0.35) with JPEG options detected.

The "make test" did not detect any problems.

I have added "/usr/local/lib" to my "ld.so.conf" and I have ran ldconfig -v... reinstalled... and still the same error message.

Any suggestions?

Thanks,

- Jonathan
Quote Reply
Re: [jdgamble] jpeg problem with GD module In reply to
try it

Code:
use GD;

$image_file = "images/yourimage.jpg";

$im = GD::Image->newFromJpeg($image_file);
Quote Reply
Re: [thekostya] jpeg problem with GD module In reply to
Thanks, I eventually figured out the problem.

http://forums.devshed.com/...for-perl-455196.html

- Jonathan

Last edited by:

jdgamble: Jul 12, 2007, 9:30 AM