Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.