Skip to content

Conversation

@masklinn
Copy link
Contributor

@masklinn masklinn commented Oct 5, 2015

Every time I try to get in-memory PNG or JPEG data I tend to spend half an hour fighting with tobytes until I remember it is not going to work and I'm supposed to use im.save(fp, format='png').
#985 makes me think I'm not alone, and a clear warning in the documentation can only help others (and future-me).

I don't actually know what tobytes is for, so I went with something along the lines of @wiredfool's comment in #985, they note that it's

only used for a couple very close to raw formats

It probably isn't what most developers want.
@wiredfool wiredfool merged commit fc52f73 into python-pillow:master Oct 12, 2015
wiredfool added a commit that referenced this pull request Oct 12, 2015
@wiredfool
Copy link
Member

Thanks for that. I've reworded it a bit and merged.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants