Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Imager : read image from scalar (not from file)

by tonyc (Friar)
on Aug 21, 2018 at 06:16 UTC ( [id://1220756]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Imager : read image from scalar (not from file)
in thread Imager : read image from scalar (not from file)

The section on Input and output in Imager::Files describes the I/O options you can supply for read(), write(), read_multi() and write_multi().

There's an example using read() from a scalar in the Imager::Files SYNOPSIS.

  • Comment on Re^3: Imager : read image from scalar (not from file)

Replies are listed 'Best First'.
Re^4: Imager : read image from scalar (not from file)
by bliako (Abbot) on Aug 21, 2018 at 08:40 UTC

    I have totally missed the one in the SYNOPSIS, sorry. Should I use a scalar for read and a ref for write?:

    $img->read(data => $data) or die; or $img->write(data => \$data, type => $type) or die;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1220756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2025-06-18 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.