LloydRice has asked for the wisdom of the Perl Monks concerning the following question:
then, when I try to read the PNG file, I getuse Imager; my $image_source = $ARGV[0]; my $image = Imager->new; $image->read(file=>$image_source) or die "Cannot load $image: ", $image->errstr;
OK. So maybe I do not have the PNG code?>perl readpng.pl d2020.png Cannot load Imager=HASH(0x10d970): format 'png' not supported - formats bmp, ico, pnm, raw, sgi, tga available for reading - Can't locate Imager/File/PNG.pm at C:\c\Perl\graphics\boxes.pl line +4.
This produces two lists:use Imager; printf "%s\n", join " ", Imager->read_types; printf " %s\n", join " ", keys %Imager::formats;
Somewhere, I read a comment that there's a bit of a trick to loading the code for different formats. I said to ask for help. I'm doing that now....sgi bmp ico pnm tga raw bmp pnm tga ifs raw w32
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using the Imager package
by tonyc (Hermit) on Dec 20, 2011 at 06:55 UTC | |
by LloydRice (Beadle) on Dec 21, 2011 at 02:38 UTC | |
by LloydRice (Beadle) on Dec 21, 2011 at 22:50 UTC | |
|
Re: Using the Imager package
by keszler (Priest) on Dec 19, 2011 at 23:54 UTC |