use vars qw($VERSION @ISA);
BEGIN {
- $VERSION = "0.84";
+ $VERSION = "0.92";
require XSLoader;
XSLoader::load('Imager::File::PNG', $VERSION);
single =>
sub {
my ($im, $io, %hsh) = @_;
- $im->{IMG} = i_readpng_wiol($io);
+ my $flags = 0;
+ $hsh{png_ignore_benign_errors}
+ and $flags |= IMPNG_READ_IGNORE_BENIGN_ERRORS;
+ $im->{IMG} = i_readpng_wiol($io, $flags);
unless ($im->{IMG}) {
$im->_set_error(Imager->_error_as_msg);