in reply to Imager::GIF seems broken
Hi, apart from, contrary to Synopsis even, the write method expecting file name (not options hash), everything else seems to work per POD: the read is to be used as constructor (class method):
use strict; use warnings; use Imager::GIF; my $gif = shift || die 'need an image'; my $img; $img = Imager::GIF-> read( file => $gif ) or die $img-> errstr; $img = $img-> scale( scalefactor => 0.5 ); $img-> write( join '.', $gif, 'half', 'gif' ) or die $img-> errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Imager::GIF seems broken
by Anonymous Monk on Jan 05, 2020 at 15:44 UTC |