Ask a Question related to PERL Modules, Design and Development.
-
wapboy #1
Image::Magick::Thumbnail::create problem
I am using a script based on the example from [url]www.cpan.org[/url] 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
# Create the thumbnail from it, where the biggest side is
$thumbnail_size px
my ($thumb,$x,$y) =
Image::Magick::Thumbnail::create($src,$thumbnail_s ize);
$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,$thumbnail_s ize);
I'm running this on Windows 98.
Can anyone help me with this one?
Thanks
Paul
--
wapboy
wapboy Guest
-
Image Magick thumbnail batch resizing
Spartacus <spam@mailinator.com> writes: I think you want to scale instead of sample do convert -quality 85 -scale x75 $i ../thumbs/`basename $i... -
Help: Image::Magick::Thumbnail
Hi, The following example (from cpan.org) take an .jpg image and creates a thumbnail. It creates an image where the biggest size is 50 pixels. ... -
Thumbnail image in Flash to larger image in new window?
I have a series of thumbnail images in Flash and I want the user to be able to click on the thumbnail and get a larger photo. I know how to make the... -
Image::Magick Read Problem
Hi, I have created a perl cgi script which allows the user to upload image files to the server. Once the files have been stored on the server,... -
unicode in Image::Magick (hex values and braces problem?)
Eric Schwartz <emschwar@pobox.com> wrote in comp.lang.perl.misc: To mimic the OP's code perfectly it should only use every other character. Note... -
John M. Gamble #2
Re: Image::Magick::Thumbnail::create problem
In article <wapboy.1cyubn@news.webfrustration.com>,
wapboy <wapboy.1cyubn@news.webfrustration.com> wrote:What's the version of your Image::Magick module, and what version>
>I am using a script based on the example from [url]www.cpan.org[/url] 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
>
>
># Create the thumbnail from it, where the biggest side is
>$thumbnail_size px
>my ($thumb,$x,$y) =
>Image::Magick::Thumbnail::create($src,$thumbnail_ 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,$thumbnail_ size);
>I'm running this on Windows 98.
>
of ImageMagick are you using?
--
-john
February 28 1997: Last day libraries could order catalogue cards
from the Library of Congress.
John M. Gamble Guest
-
wapboy #3
Image::Magick::Thumbnail::create problem
John M. Gamble Wrote:I downloaded these modules sometime ago and I'm not certain how I tell> What's the version of your Image::Magick module, and what version
> of ImageMagick are you using?
>
>
the version, but it looks like it is:-
Image::Magick 5,46,0,0
Image::Magick::Thumbnail 0.01
Thanks
Paul
--
wapboy
wapboy Guest
-
John M. Gamble #4
Re: Image::Magick::Thumbnail::create problem
In article <wapboy.1d4ebm@news.webfrustration.com>,
wapboy <wapboy.1d4ebm@news.webfrustration.com> wrote:Hmph. You're more advanced than me.>
>John M. Gamble Wrote:>>> What's the version of your Image::Magick module, and what version
>> of ImageMagick are you using?
>>
>>
>I downloaded these modules sometime ago and I'm not certain how I tell
>the version, but it looks like it is:-
>Image::Magick 5,46,0,0
>Image::Magick::Thumbnail 0.01
>
>Thanks
>
>Paul
>
I'm afraid that I don't see anything obvious at the moment.
--
-john
February 28 1997: Last day libraries could order catalogue cards
from the Library of Congress.
John M. Gamble Guest
-
John M. Gamble #5
Re: Image::Magick::Thumbnail::create problem
In article <wapboy.1cyubn@news.webfrustration.com>,
wapboy <wapboy.1cyubn@news.webfrustration.com> wrote:Wait a minute. Is this copied directly from your script? If>
>I am using a script based on the example from [url]www.cpan.org[/url] 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
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,$thumbnail_ 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,$thumbnail_ 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.
John M. Gamble Guest



Reply With Quote

