Click here to get back home

Image magic problem Use of uninitialized value in numeric gt (>)

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Image magic problem Use of uninitialized value in numeric gt (>) Dave 03-20-2006
Posted by Dave on March 20, 2006, 7:12 pm
Please log in for more thread options


I am getting this error using ImageMagick Thumbnail

Use of uninitialized value in numeric gt (>) at
/usr/local/lib/perl5/site_perl/5.8.8/Image/Magick/Thumbnail.pm line 73.

the error occurs


$pathfile="/usr/local/www/html/community/uploads/tmpimage\/$filetomove";
$src->Read("$pathfile");
# Create the thumbnail from it, where the biggest side is 500
px

error here ($thumb,$x,$y) =
Image::Magick::Thumbnail::create($src,500);


using ImageMagick-6.2.6, Image-Magick-Thumbnail-0.04 and
This is perl, v5.8.8 built for i386-freebsd

The same code works on my other server running on a linux platform

Any help appreciated thanks in advance


Posted by Gunnar Hjalmarsson on March 20, 2006, 8:59 pm
Please log in for more thread options


Dave wrote:
> I am getting this error using ImageMagick Thumbnail
>
> Use of uninitialized value in numeric gt (>) at
> /usr/local/lib/perl5/site_perl/5.8.8/Image/Magick/Thumbnail.pm line 73.

It's a warning.

> the error occurs
>
> $pathfile="/usr/local/www/html/community/uploads/tmpimage\/$filetomove";
> $src->Read("$pathfile");
> # Create the thumbnail from it, where the biggest side is 500 px
>
> error here ($thumb,$x,$y) =
> Image::Magick::Thumbnail::create($src,500);
>
> using ImageMagick-6.2.6, Image-Magick-Thumbnail-0.04 and
> This is perl, v5.8.8 built for i386-freebsd
>
> The same code works on my other server running on a linux platform

Not sure I see the advantage of using Image::Magick::Thumbnail anyway.
Why not try without it:

my $err;
$err = $src->Thumbnail('500x500') and die $err;
$err = $src->Write('/path/to/thumbnail/file') and die $err;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Similar ThreadsPosted
Cast %INC magic May 7, 2007, 5:11 am
XML::Generator::DBI - use of uninitialized value on line 180 and 187 September 12, 2004, 8:00 pm
Image::Magick::Thumbnail::create problem September 24, 2004, 6:14 pm
GD::Graph isn't numeric etc. January 26, 2005, 7:43 pm
HTTP::Request::Form - Problem pressing input type=image button February 1, 2005, 7:56 am
[RFC] GD-Image-CopyIFS May 14, 2005, 3:42 pm
image magick through apt-get November 27, 2004, 5:48 pm
image::grab January 4, 2005, 7:22 pm
[RFC] Image::Pngslimmer December 24, 2006, 3:34 pm
Image magick palette July 30, 2004, 9:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap