mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Python Imaging Library (Fork)
416d8e340e
When saving a JPEG and specifying 'keep' for quality or subsampling, if the source JPEG image is in grayscale mode, don't try to find the subsampling of the source, because grayscale images don't have any subsampling (it's only for color components). For the moment the fix also ignores subsampling of CMYK JPEG because currently Pillow doesn't support encoding JPEG in YCCK mode (and subsampling doesn't make sense in CMYK, but Pillow permits saving CMYK JPEG with subsampling, that's a bug). This fix pass those errors silently, i.e. it doesn't raise an error when 'keep' is used but it's not possible to keep the subsampling (because the image is grayscale or CMYK). I think it's the proper behavior but I'm not sure. |
||
---|---|---|
depends | ||
docs | ||
libImaging | ||
PIL | ||
Sane | ||
Scripts | ||
Tests | ||
Tk | ||
_imaging.c | ||
_imagingcms.c | ||
_imagingft.c | ||
_imagingmath.c | ||
_imagingmorph.c | ||
_imagingtk.c | ||
_webp.c | ||
.coveragerc | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CHANGES.rst | ||
CONTRIBUTING.md | ||
decode.c | ||
display.c | ||
encode.c | ||
Makefile | ||
MANIFEST.in | ||
map.c | ||
mp_compile.py | ||
outline.c | ||
path.c | ||
profile-installed.py | ||
py3.h | ||
README.rst | ||
requirements.txt | ||
selftest.py | ||
setup.py | ||
test-installed.py | ||
tox.ini |
Pillow ====== *Python Imaging Library (Fork)* Pillow is the "friendly" PIL fork by `Alex Clark and Contributors <https://github.com/python-pillow/Pillow/graphs/contributors>`_. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. For more information, please `read the documentation <http://pillow.readthedocs.org/>`_, `check the changelog <https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst>`_ and `find out how to contribute <https://github.com/python-pillow/Pillow/blob/master/CONTRIBUTING.md>`_. .. image:: https://travis-ci.org/python-pillow/Pillow.svg?branch=master :target: https://travis-ci.org/python-pillow/Pillow :alt: Travis CI build status .. image:: https://pypip.in/v/Pillow/badge.png :target: https://pypi.python.org/pypi/Pillow/ :alt: Latest PyPI version .. image:: https://pypip.in/d/Pillow/badge.png :target: https://pypi.python.org/pypi/Pillow/ :alt: Number of PyPI downloads .. image:: https://coveralls.io/repos/python-pillow/Pillow/badge.png?branch=master :target: https://coveralls.io/r/python-pillow/Pillow?branch=master