Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Usage: i_writegif_wiol(IO,hashref, images...) at .../Imager/File/GIF.pm line 84.
The module has no real tests (just one: will it load) so it looks good to the Testers. I can see what it's trying to do and could cargo-cult it into my own code but I can't see what's wrong, can you?
https://metacpan.org/release/Imager-GIF/source/lib/Imager/GIF.pm https://metacpan.org/release/Imager-File-GIF/source/GIF.pm#L84
Thanks for your attention to this matter.#!/usr/bin/perl use strict; use warnings; use Imager::GIF; my $gif = shift || die 'need an image'; my $img = Imager::GIF->new; $img->read(file => $gif) or die $img->errstr; $img = $img->scale(scalefactor => 0.5); $img->write(file => join '.', $gif, 'half', 'gif') or die $img->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Imager::GIF seems broken
by vr (Curate) on Jan 05, 2020 at 15:15 UTC | |
by Anonymous Monk on Jan 05, 2020 at 15:44 UTC | |
|
Re: Imager::GIF seems broken
by marto (Cardinal) on Jan 05, 2020 at 15:04 UTC | |
by Anonymous Monk on Jan 05, 2020 at 15:50 UTC | |
by marto (Cardinal) on Jan 05, 2020 at 15:59 UTC | |
by Anonymous Monk on Jan 05, 2020 at 16:24 UTC | |
by marto (Cardinal) on Jan 07, 2020 at 10:10 UTC |