ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] Error when saving JPEG with quality above 85 and optimize
by Jim Tittsler other posts by this author
Apr 2 2006 4:41PM messages near this date
[Image-SIG] Error when saving JPEG with quality above 85 and optimize | [Image-SIG] messages stuck in moderation queue
On Apr 3, 2006, at 00:38, Nir Soffer wrote:
>  When I try to save JPEG files with quality above 85 and optimize=1, I
>  get this traceback:
> >>> image.save("foo.jpg", quality=86, optimize=1)
> 
>  Suspension not allowed here

Try this workaround for the way the JPEG library works:
   http://mail.python.org/pipermail/image-sig/1999-August/000816.html

>  	"The available options are described later in this handbook."
>  Where is the link to the options? at least where is "later"?

There is an appendix titled "Image File Formats" that includes notes  
including the options accepted by save() and the 'info' properties  
supported by each format.  In the online version, it is here:
   http://www.pythonware.com/library/pil/handbook/formats.htm

Of course, looking through the code is the best method to get up to  
date information.  :-)


-- 
Jim Tittsler  7J1AJH/AI8A  Tokyo                     GPG: 0x01159DB6
http://www.qsl.net/7j1ajh/                       QRP/Satellites/APRS
                                                          AMSAT/NZART


_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Nir Soffer
Jim Tittsler

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved