Page 1 of 1

raw rgba pixel data

Posted: 2011-03-26T22:36:49-07:00
by superaktieboy
I have a string of raw RGBA pixel data. How can I convert and save this? I was able to do by saving it first to .rgba and using the command:

Code: Select all

convert -size 128x128 -depth 8 tmp.rgba output.png
but need to do this with imagick/magickwand and php, preferably without saving it.

thanks in advance

Hosh