Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in PIL 1.1.6 fromarray() #1

Open
GoogleCodeExporter opened this issue Oct 21, 2015 · 0 comments
Open

Bug in PIL 1.1.6 fromarray() #1

GoogleCodeExporter opened this issue Oct 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

A bug in PIL causes images created using the fromarray() function to be
created as 'L' mode, even if the array data uses int32.

This can be fixed by changing the Image.py file. Under the fromarray()
function change the following line:

typestr = typestr[:2]

to:

typestr = typestr[1:]

Hopefully this will be fixed in future versions of PIL.

Original issue reported on code.google.com by [email protected] on 18 Jun 2008 at 2:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant