Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: How to create and save an image from RGB valuesby LanX (Saint) |
on Dec 28, 2021 at 00:02 UTC ( [id://11139964]=note: print w/replies, xml ) | Need Help?? |
You didn't say it's such an amount of data, I'm wondering what kind of images you are creating. Charts? Fractals? ° Anyway ... It's been a while since I've worked with convert , but IIRC it's possible to compose bigger pics from smaller ones. So you could write out PPM's of small temporary chunks (like stripes of lines) and convert them to your desired compact format and finally glue all parts together.
update°) more importantly, how are you able to keep your RGB array in memory if it's too big for the disk?
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|