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";
In reply to Saving the first frame of any image by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |