http://qs1969.pair.com?node_id=11139964


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

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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery