1 BEGIN { $| = 1; print "1..3\n"; }
2 END {print "not ok 1\n" unless $loaded;}
9 Imager::init('log'=>'testout/t65crop.log');
11 $img=Imager->new() || die "unable to create image object\n";
15 $img->open(file=>'testimg/scale.ppm',type=>'pnm');
19 print "ok 2 # skip\n";
20 print "ok 3 # skip\n";
25 $nimg=$img->crop(top=>10, left=>10, bottom=>25, right=>25)
26 or skip ( "\# warning ".$img->{'ERRSTR'}."\n" );
28 # xopcodes=>[qw( x y Add)],yopcodes=>[qw( x y Sub)],parm=>[]
31 $nimg->write(type=>'pnm',file=>'testout/t65.ppm') || die "error in write()\n";