Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Image::Magick::Thumbnail::create problem
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.

Report this thread to moderator Post Follow-up to this message
Old Post
John M. Gamble
10-02-04 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Modules archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.