=head1 SYNOPSIS
+ use Imager;
my $img = ...;
$img->write(file=>$filename, type=>$type)
or die "Cannot write: ",$img->errstr;
$img->read(fd => fileno($fh)) or die;
$img->read(callback => \&read_callback) or die;
+ use Imager 0.68;
+ my $img = Imager->new(file => $filename)
+ or die Imager->errstr;
+
=head1 DESCRIPTION
You can read and write a variety of images formats, assuming you have
non-zero then read() can return true on an incomplete image and set
the C<i_incomplete> tag.
+From Imager 0.68 you can supply most read() parameters to the new()
+method to read the image file on creation. If the read fails, check
+Imager->errstr() for the cause:
+
+ use Imager 0.68;
+ my $img = Imager->new(file => $filename)
+ or die "Cannot read $filename: ", Imager->errstr;
+
=item write
and the C<write()> method to write an image:
or die $img->errstr;
This was introduced in Imager 0.60. Previously reading ICO images
-acted as if C<<ico_masked => 0>>.
+acted as if C<ico_masked =E<gt> 0>.
=back