Help for this page

Select Code to Download


  1. or download this
    use Imager;
    my $image_source = $ARGV[0];
    my $image = Imager->new;
    $image->read(file=>$image_source)
      or die "Cannot load $image: ", $image->errstr;
    
  2. or download this
    >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.
    
  3. or download this
    use Imager;
    printf "%s\n", join " ", Imager->read_types;
    printf " %s\n", join " ", keys %Imager::formats;
    
  4. or download this
    sgi bmp ico pnm tga raw
     bmp pnm tga ifs raw w32