Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There are probably more characters other than the hyphen that will prevent thumbnailing, so there might be a problem with my regex or something. Can you take a look at the snippet below and see how I can correct it to allow any legit filename?
I know it's crazy to think an animated gif will produce a thumbnail, but is it possible in any way to capture the first frame as a thumbnail or are animations totally out of the picture here?
$localfile = $filename; $localfile =~ m/(.*)\.(.*)/; $newfilename = "generated_thumbs/$1.png"; $x = $image->Write($newfilename);
janitored by ybiC: Retitle from "few Image::Magick questions" for searchability
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: few Image::Magick questions
by PodMaster (Abbot) on Feb 22, 2004 at 06:09 UTC |