Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm using a CGI upload form and it works if it's not a multi-frame image. If it is, I get a million thumbnails I don't want. I tried this suggestion but now NO thumbnails are created whatsoever. Can someone point out where I made my OOPSIE?
my $remotefile = param("image"); # make new variable to prevent overwriting my $filename = $remotefile; # remove all the junk in our filename $filename =~ s/^.*[\\\/]//; #begin image magic my ($image, $x); $image=Image::Magick->new; $x = $image->Read($localfile); warn "$x" if "$x"; $x = $image->Resize(width=>500, height=>500); $localfile = $filename; $localfile =~ /(.*)\.(.*)/; $newfilename = "$1.png"; $x = $image->Write($newfilename); warn "$x" if "$x";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving the first frame of any image
by gt8073a (Hermit) on Mar 25, 2004 at 18:00 UTC | |
by coldfingertips (Pilgrim) on Mar 25, 2004 at 18:59 UTC | |
by TilRMan (Friar) on Mar 26, 2004 at 02:29 UTC | |
|
Re: Saving the first frame of any image
by PodMaster (Abbot) on Mar 26, 2004 at 07:56 UTC |