1. Fredrik Lundh
  2. pil-2009-raclette
  3. Pull requests

Pull requests

#7 Open
Repository
etienned
Branch
default
Repository
effbot
Branch
default

Added option to specify/keep quantization tables when saving to JPEG

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update 
hg pull -r default https://bitbucket.org/etienned/pil-2009-raclette
Author
  1. Etienne Desautels
Reviewers
Description

My motivation was that the libjpeg default quantization are far from ideal in many scenarios. When specifying custom quantization tables it's possible to get better results for the same file size. Another motivation is to save the image with the same compression (quantization tables + subsampling) as the original, loosing less quality as possible.

See here for more info: http://stackoverflow.com/questions/4354543/determining-jpg-quality-in-python-pil/4355281

And here: http://www.reddit.com/r/Python/comments/ox2pc/added_jpeg_feature_to_pil_code_review_needed/

Comments (0)