[Image-SIG] Help with PIL image.tostring
Robert
robjnorman at sbcglobal.net
Fri May 18 03:50:41 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
--------------------------------------------------------------------------------------
If this is a duplicate of an earlier post, I had tried several times
from another mail account and it kept getting bounced.
More information about the Image-SIG
mailing list