Subject: | Tests fail with Imager (updated Imager?) |
t/003CropDark.t fails at line 55.
Can't call method "read" on an undefined value at t/003CropDark.t line 55.
Adding the "or die" from the Imager synopsis yields
new: supply xsize and ysize or a file access parameter or no parameters at t/003CropDark.t line 54.
This is fixed by combining lines 54 and 55
--- t/003CropDark.t 2009-07-20 02:33:49.000000000 +0100
+++ t/003CropDark.t 2015-10-11 11:15:58.271835472 +0100
@@ -51,8 +51,7 @@
for my $file (map { "$canned/croptest-$_.jpg" } qw(dark black
black white1
white2)) {
- my $img = Imager->new(channels => 4);
- $img->read( file => $file );
+ my $img = Imager->new( channels => 4,file => $file );
push @images, $img;
}