[Image-SIG] float rgba list -> Image

Charles Cazabon charlesc-pyimagesig at pyropus.ca
Wed Aug 31 16:43:17 CEST 2011


Ingo Randolf <ingo at quitch.net> wrote:
> 
> I have a list with float-values describing an image like this:
> [R, G, B, A, R, G, B, A, R, G, B, A, R, G, B, A, R, G, B, A, ... etc.]
> 
> the RGBA-values are from 0. - 1.
> 
> is there a clever way to make a PIL-Image out of something like this?

PIL.Image.fromstring() is probably your best bet.

Charles
-- 
------------------------------------------------------------------
Charles Cazabon                   <charlesc-pyimagesig at pyropus.ca>
Software, consulting, and services available at http://pyropus.ca/
------------------------------------------------------------------


More information about the Image-SIG mailing list