[Image-SIG] Help with image.tostring parameters
Robert Norman
tfcrobert at gmail.com
Fri May 18 01:35:49 CEST 2007
I'm new to PIL and wanted to use Image.tostring for inline graphics under
mod-python. Seems like a good fit but I can't seem to come up with the
format of the required second parameter when you do
output = im.tostring ("jpeg", ???)
The python traceback says the second parameter is required and it's string.
I've checked out several version of the PIL handbook and tried figuring it
out from the code for JpegImagePlugin.py but don't really understand how the
original call maps to the plugin.
What should be put in the second parameter. Aren't all the options
defaulted?
Thanks
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20070517/7ad408cd/attachment.html
More information about the Image-SIG
mailing list