1 BEGIN { $| = 1; print "1..3\n"; }
2 END {print "not ok 1\n" unless $loaded;}
3 use Imager qw(:default);
9 Imager::init('log'=>'testout/t60dyntest.log');
11 $img=Imager->new() || die "unable to create image object\n";
13 $img->open(file=>'testout/t104.ppm',type=>'pnm') || die "failed: ",$img->{ERRSTR},"\n";
15 $plug='dynfilt/dyntest.'.$Config{'so'};
16 load_plugin($plug) || die "unable to load plugin:\n$Imager::ERRSTR\n";
18 print "ok\nok\n"; # exit;
20 %hsh=(a=>35,b=>200,type=>lin_stretch);
23 $img->write(type=>'pnm',file=>'testout/t60.ppm') || die "error in write()\n";
25 unload_plugin($plug) || die "unable to unload plugin: $Imager::ERRSTR\n";