2008/2/14, Nuttall, Brandon C <[EMAIL PROTECTED]>: > My question is how to specify the PNG optimize parameter? The documentation > for the save method says > > Im.save(outfile,format,options) > > The PNG section of the documentation says "optimize" can be specified for > the save method. It appears that this is the value of a keyword argument. > However, if I try im.save(outfile,format,"optimize"), the code fails with a > wrong number of arguments message.
Try something like this: im.save(outfile, 'png', optimize=True) Or, if outfile ends with ".png", you can simply use: im.save(outfile, optimize=True) Hope this helps. -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig