in reply to Image::Thumbnail work under windows but not on linux
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Image::Thumbnail work under windows but not on linux
by holli (Abbot) on Aug 14, 2019 at 09:07 UTC | |
|
Re^2: Image::Thumbnail work under windows but not on linux
by jcb (Parson) on Aug 15, 2019 at 02:31 UTC | |
by hippo (Archbishop) on Aug 15, 2019 at 08:03 UTC | |
by jcb (Parson) on Aug 15, 2019 at 22:29 UTC | |
by haukex (Archbishop) on Aug 15, 2019 at 06:52 UTC | |
by jcb (Parson) on Aug 15, 2019 at 22:27 UTC |