Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 (Monsignor) 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 having a coffee break in the Monastery: (5)
As of 2024-05-23 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found