I'd be very interested to hear why you have decided to use neither strict nor warnings nor taint mode.
sub createImageMagickThumb { my $filename = shift || ''; my $t = new Image::Thumbnail( size => 55, create => 1, input => '$imgdir/$filename', outputpath => '$imgdir/thumb.$filename', ); print "Content-Type: text/html\n\n"; print "outputpath => '$imgdir/thumb.$filename'"; }
As is plain from the above, your use of single quotes in the arguments to Image::Thumbnail->new means that the paths will not be interpolated. I would go so far as to suggest that this code, as written, isn't doing what you think on windows either.
In reply to Re: Image::Thumbnail work under windows but not on linux
by hippo
in thread Image::Thumbnail work under windows but not on linux
by *alexandre*
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |