9 # as a TIFF this file is large, build it from largeish.jpg if it
11 unless (-f "bench/largish.gif") {
12 my $im = Imager->new(file => "bench/largish.jpg")
13 or die "Cannot read bench/largish.jpg:", Imager->errstr;
14 $im->write(file => "bench/largish.gif")
15 or die "Cannot write bench/largish.gif:", $im->errstr;
20 [ "bench/largish.gif", "" ],
21 [ "GIF/testimg/scale.gif", "" ],
22 [ "GIF/testimg/nocmap.gif", "Image does not have a local or a global color map" ],
27 for my $test (@tests) {
32 my ($file, $result, $name) = @_;
35 my $im = Imager->new(file => $file);
37 $im and die "Expected error from $file, got image";
38 Imager->errstr eq $result
39 or die "Expected error '$result', got '",Imager->errstr, "'"
42 $im or die "Expected image got error '", Imager->errstr, "'";
53 for my $t (@threads) {