For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > October 2004 > Re: Image::Magick::Thumbnail::create problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Image::Magick::Thumbnail::create problem
John M. Gamble

2004-10-02, 8:57 am

In article <wapboy.1cyubn@news.webfrustration.com>,
wapboy <wapboy.1cyubn@news.webfrustration.com> wrote:
>
>I am using a script based on the example from www.cpan.org for
>Image::Magick::Thumbnail:-
>#!/usr/bin/perl -w
>use CGI qw(:all);
>
>print header;
>use Image::Magick;
>use Image::Magick::Thumbnail;
>my $input_file="source.jpg";
>my $thumbnail_name="source_tn.jpg";
>my $thumbnail_size=50;
>
>my $src = new Image::Magick;
>$src-Read($input_file);#read the original image


Wait a minute. Is this copied directly from your script? If
so, what's this "$src-Read(..." line doing there? Likewise
the "$thumb-Write(..." line below.

Is this a side-effect of your cut-and-paste, or is it actually
written that way in your code?

>
>
># Create the thumbnail from it, where the biggest side is
>$thumbnail_size px
>my ($thumb,$x,$y) =
> Image::Magick::Thumbnail::create($src,$t
humbnail_size);
>
>$thumb-Write($thumbnail_name);# Save the thumbnail in the current
>directory
>
>I am getting the following error:-
>Use of uninitialized value in numeric gt () at
>C:/Perl/site/lib/Image/Magick/Thumbnail.pm line 48.
>
>This error happens in
> Image::Magick::Thumbnail::create($src,$t
humbnail_size);
>I'm running this on Windows 98.
>
>Can anyone help me with this one?
>
>Thanks
>
>Paul
>
>
>--
>wapboy



--
-john

February 28 1997: Last day libraries could order catalogue cards
from the Library of Congress.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com