From 9357c98535658f4b91e48fc444fea85d63a7501e5a7151ad8095f1a131de58f3 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 22 Jan 2024 06:02:29 +0000 Subject: [PATCH] - Update to 10.2.0: * Add ``keep_rgb`` option when saving JPEG to prevent conversion of RGB colorspace * Trim glyph size in ImageFont.getmask() * Deprecate IptcImagePlugin helpers * Allow uncompressed TIFF images to be saved in chunks * Concatenate multiple JPEG EXIF markers * Changed IPTC tile tuple to match other plugins * Do not assign new fp attribute when exiting context manager * Support arbitrary masks for uncompressed RGB DDS images * Support setting ROWSPERSTRIP tag * Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() * Optimise ``ImageColor`` using ``functools.lru_cache`` * Restricted environment keys for ImageMath.eval() (CVE-2023-50447, bsc#1219048) * Optimise ``ImageMode.getmode`` using ``functools.lru_cache`` * Fix incorrect color blending for overlapping glyphs * Attempt memory mapping when tile args is a string * Fill identical pixels with transparency in subsequent frames when saving GIF * Corrected duration when combining multiple GIF frames into single frame * Handle disposing GIF background from outside palette * Seek past the data when skipping a PSD layer * Import plugins relative to the module * Translate encoder error codes to strings; deprecate ``ImageFile.raise_oserror()`` * Support reading BC4U and DX10 BC1 images * Optimize ImageStat.Stat.extrema * Handle pathlib.Path in FreeTypeFont * Added support for reading DX10 BC4 DDS images OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=150 --- Pillow-10.1.0.tar.gz | 3 --- pillow-10.2.0.tar.gz | 3 +++ python-Pillow.changes | 45 +++++++++++++++++++++++++++++++++++++++++++ python-Pillow.spec | 17 ++++++++-------- 4 files changed, 57 insertions(+), 11 deletions(-) delete mode 100644 Pillow-10.1.0.tar.gz create mode 100644 pillow-10.2.0.tar.gz diff --git a/Pillow-10.1.0.tar.gz b/Pillow-10.1.0.tar.gz deleted file mode 100644 index 808d011..0000000 --- a/Pillow-10.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6bf8de6c36ed96c86ea3b6e1d5273c53f46ef518a062464cd7ef5dd2cf92e38 -size 50781360 diff --git a/pillow-10.2.0.tar.gz b/pillow-10.2.0.tar.gz new file mode 100644 index 0000000..b78b770 --- /dev/null +++ b/pillow-10.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e87f0b2c78157e12d7686b27d63c070fd65d994e8ddae6f328e0dcf4a0cd007e +size 46212712 diff --git a/python-Pillow.changes b/python-Pillow.changes index cedf229..e911cbf 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Mon Jan 22 06:00:50 UTC 2024 - Steve Kowalik + +- Update to 10.2.0: + * Add ``keep_rgb`` option when saving JPEG to prevent conversion of + RGB colorspace + * Trim glyph size in ImageFont.getmask() + * Deprecate IptcImagePlugin helpers + * Allow uncompressed TIFF images to be saved in chunks + * Concatenate multiple JPEG EXIF markers + * Changed IPTC tile tuple to match other plugins + * Do not assign new fp attribute when exiting context manager + * Support arbitrary masks for uncompressed RGB DDS images + * Support setting ROWSPERSTRIP tag + * Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() + * Optimise ``ImageColor`` using ``functools.lru_cache`` + * Restricted environment keys for ImageMath.eval() + (CVE-2023-50447, bsc#1219048) + * Optimise ``ImageMode.getmode`` using ``functools.lru_cache`` + * Fix incorrect color blending for overlapping glyphs + * Attempt memory mapping when tile args is a string + * Fill identical pixels with transparency in subsequent frames when + saving GIF + * Corrected duration when combining multiple GIF frames into single frame + * Handle disposing GIF background from outside palette + * Seek past the data when skipping a PSD layer + * Import plugins relative to the module + * Translate encoder error codes to strings; deprecate + ``ImageFile.raise_oserror()`` + * Support reading BC4U and DX10 BC1 images + * Optimize ImageStat.Stat.extrema + * Handle pathlib.Path in FreeTypeFont + * Added support for reading DX10 BC4 DDS images + * Optimized ImageStat.Stat.count + * Correct PDF palette size when saving + * Fixed closing file pointer with olefile 0.47 + * Raise ValueError when TrueType font size is not greater than zero + * If absent, do not try to close fp when closing image + * Allow configuring JPEG restart marker interval on save + * Decrement reference count for PyObject + * Implement ``streamtype=1`` option for tables-only JPEG encoding + * If save_all PNG only has one frame, do not create animated image + * Fixed frombytes() for images with a zero dimension +- Switch to autosetup and pyproject macros. + ------------------------------------------------------------------- Mon Nov 27 08:54:27 UTC 2023 - Dirk Müller diff --git a/python-Pillow.spec b/python-Pillow.spec index 8ffa440..a66acbe 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pillow # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,17 +18,19 @@ %{?sle15_python_module_pythons} Name: python-Pillow -Version: 10.1.0 +Version: 10.2.0 Release: 0 Summary: Python Imaging Library (Fork) License: HPND URL: https://python-pillow.org/ -Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module olefile} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 4.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tk} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libimagequant-devel BuildRequires: pkgconfig @@ -67,14 +69,13 @@ Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. %prep -%setup -q -n Pillow-%{version} -%autopatch -p1 +%autosetup -p1 -n pillow-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # add missing path %{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth} %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -101,7 +102,7 @@ pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --i %doc CHANGES.rst README.md %{python_sitearch}/PIL %{python_sitearch}/PIL.pth -%{python_sitearch}/Pillow-%{version}-py%{python_version}.egg-info +%{python_sitearch}/pillow-%{version}.dist-info %exclude %{python_sitearch}/PIL/ImageTk* %exclude %{python_sitearch}/PIL/_imagingtk* %pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*