mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Document quality parameter change when saving JPEGs [ci skip]
This commit is contained in:
parent
a8c0794107
commit
a99b9d63f4
16
docs/releasenotes/7.1.0.rst
Normal file
16
docs/releasenotes/7.1.0.rst
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
7.0.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
Allow saving of zero quality JPEG images
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
If no quality was specified when saving a JPEG, Pillow internally used a value
|
||||||
|
of zero to indicate that the default quality should be used. However, this
|
||||||
|
removed the ability to actually save a JPEG with zero quality. This has now
|
||||||
|
been resolved.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
from PIL import Image
|
||||||
|
im = Image.open("hopper.jpg")
|
||||||
|
im.save("out.jpg", quality=0)
|
Loading…
Reference in New Issue
Block a user