Subject: | Extra gif file when saving gif as jpg |
Using Apache 1.3.31 and perl 5.8.0
I upload a gif file and create an Imager object using the upload file handle from Apache::Request. When I save it as type jpeg I get an extra empty file with the same name except it has a gif extension instead of jpg.
In the example code I would get two file Thumbnail.jpg and Thumbnail.gif.
example code -
my $Upload = apr->upload;
my $img = Imager->new;
$img->read( fh => $Upload->fh)
my $newimg = $img->scale(xpixels=>105, ypixels=>73);
$newimg->write( type=>"jpeg", file=>"Thumbnail.jpg");