Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How to create and save an image from RGB values

by kikuchiyo (Friar)
on Dec 27, 2021 at 23:52 UTC ( #11139962=note: print w/replies, xml ) Need Help??


in reply to Re: How to create and save an image from RGB values
in thread How to create and save an image from RGB values

How about the PPM format? It's as simple as e.g. "P6 640 480 255\n" followed by the raw RGB binary data. It can be transformed by ImageMagick to any desired format.

Alternatively, see the write_to_scalar example in Image::PNG::Libpng.

  • Comment on Re^2: How to create and save an image from RGB values

Replies are listed 'Best First'.
Re^3: How to create and save an image from RGB values
by LanX (Sage) on Dec 28, 2021 at 00:59 UTC
    > How about the PPM format?

    Yeah, that's pretty much what I was imagining (no pun intended ;)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2022-08-09 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?