Subject: | read_multi() should fallback to read() |
Currently read_multi() will fail if the image isn't a supported
multi-image file type.
This leads to a pattern like:
my @imgs = Imager->read_multi(file => $filename);
if (!@imgs) {
my $im = Imager->new;
$im->read(file=>$filename) or die $im->errstr;
@imgs = $im;
}
It would be easier to use if read_multi() would call the read() method
to read other formats, changing the above to:
my @imgs = Imager->read_multi(file => $filename) or die Imager->errstr;