A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/333432.html below:

help for conversion of NUMARRAY to PIL object

help for conversion of NUMARRAY to PIL object help for conversion of NUMARRAY to PIL objectRobert Kern rkern at ucsd.edu
Thu Sep 15 22:24:06 EDT 2005
A. L. wrote:
> Thanks. But some problems remain.
> 
> I have known using Image.tostring/fromstring and
> numarray.tostring/fromstring can do the job. But when confronting
> multi-spectral images, e.g., RGB color images, I don't know how to do
> it. Could you give some advices on that?

What's not working for you?

> You wrote "In [14]: img = Image.frombuffer('RGBA', (256,256), a) ", but
> it seems that "a" cannot work in "frombuffer".

What do you mean that "a" cannot work in "frombuffer"? It certainly does
on my machine. Is it raising an exception on yours? If so, please post
the code that is causing the error and the exception that is raised and
the versions of PIL and numarray that you are using.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4