]> git.imager.perl.org - imager.git/blob - t/t90cc.t
oops, tiff only handles 3-channel images so far
[imager.git] / t / t90cc.t
1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl test.pl'
3
4 ######################### We start with some black magic to print on failure.
5
6 # Change 1..1 below to 1..last_test_to_print .
7 # (It may become useful if the test is moved to ./t subdirectory.)
8
9
10 BEGIN { $| = 1; print "1..3\n"; }
11 END {print "not ok 1\n" unless $loaded;}
12
13 use Imager;
14 $loaded=1;
15
16 print "ok 1\n";
17
18 Imager::init('log'=>'testout/t90cc.log');
19
20 $img=Imager->new();
21 $img->open(file=>'testimg/scale.ppm') || print "failed: ",$img->{ERRSTR},"\n";
22 print "ok 2\n";
23
24 print "# Less than 10K colors in image\n" if !defined($img->getcolorcount(maxcolors=>10000));
25 print "# color count: ".$img->getcolorcount()."\n";
26
27 print "ok 3\n";