Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 78843
Status: resolved
Priority: 40/
Queue: Imager

People
Owner: Nobody in particular
Requestors: TONYC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.91
Fixed in: (no value)



Subject: use PerlIO to interact with perl file handles
Currently Imager expects any fh parameter to return a fd via fileno() and then Imager uses write/read/seek etc to work with that fd. If the has useful layers (gzip) or doesn't work with a file (open my $fh, ">", \$scalar) Imager will produce incorrect results. Imager needs a new type of I/O layer that uses PerlIO calls. Also, if the file handle is tired, create a callback handle and use perl to read/write/seek etc.
On Wed Aug 08 00:48:54 2012, TONYC wrote: Show quoted text
> Currently Imager expects any fh parameter to return a fd via fileno() > and then Imager uses write/read/seek etc to work with that fd. > > If the has useful layers (gzip) or doesn't work with a file (open my > $fh, ">", \$scalar) Imager will produce incorrect results. > > Imager needs a new type of I/O layer that uses PerlIO calls. > > Also, if the file handle is tired, create a callback handle and use perl > to read/write/seek etc.
Fixed in Imager 0.95.