diff --git a/docs/reference/ImageGrab.rst b/docs/reference/ImageGrab.rst index adf46badd..c504a5ef3 100644 --- a/docs/reference/ImageGrab.rst +++ b/docs/reference/ImageGrab.rst @@ -56,7 +56,7 @@ or the clipboard to a PIL image memory. :param scale_down: On macOS, Retina screens will provide images at 2x size by default. This will prevent that, and scale down to 1x. Keyword-only argument. - .. versionadded:: 12.1.0 + .. versionadded:: 12.2.0 :return: An image .. py:function:: grabclipboard() diff --git a/docs/releasenotes/12.2.0.rst b/docs/releasenotes/12.2.0.rst new file mode 100644 index 000000000..974fac5a9 --- /dev/null +++ b/docs/releasenotes/12.2.0.rst @@ -0,0 +1,60 @@ +12.2.0 +------ + +Security +======== + +TODO +^^^^ + +TODO + +:cve:`YYYY-XXXXX`: TODO +^^^^^^^^^^^^^^^^^^^^^^^ + +TODO + +Backwards incompatible changes +============================== + +TODO +^^^^ + +TODO + +Deprecations +============ + +TODO +^^^^ + +TODO + +API changes +=========== + +TODO +^^^^ + +TODO + +API additions +============= + +Added ``scale_down`` argument to ``ImageGrab.grab()`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +:py:meth:`~PIL.ImageGrab.grab` now accepts an optional keyword argument of +``scale_down``. This affects macOS screenshots with a ``bbox`` on a Retina screen. By +default, images will be captured at 2x. If ``scale_down`` is ``True``, they will be at +1x. + +Previously, macOS screenshots with a ``bbox`` were captured at 1x by default. + +Other changes +============= + +TODO +^^^^ + +TODO diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index 4b25bb6a2..0f6845015 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -15,6 +15,7 @@ expected to be backported to earlier versions. :maxdepth: 2 versioning + 12.2.0 12.1.0 12.0.0 11.3.0