Merge pull request #101 from radarhere/qt5

Remove deprecations for Pillow 10.0.0
This commit is contained in:
Hugo van Kemenade 2023-04-08 10:30:01 +03:00 committed by GitHub
commit 9baa57b75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 18 deletions

View File

@ -28,7 +28,7 @@ def test_sanity(mode, tmp_path):
assert_image_equal(rt, src) assert_image_equal(rt, src)
if mode == "1": if mode == "1":
# BW appears to not save correctly on QT5 # BW appears to not save correctly on Qt
# kicks out errors on console: # kicks out errors on console:
# libpng warning: Invalid color type/bit depth combination # libpng warning: Invalid color type/bit depth combination
# in IHDR # in IHDR

View File

@ -412,18 +412,6 @@ See :ref:`concept-filters` for details.
:undoc-members: :undoc-members:
:noindex: :noindex:
Some deprecated filters are also available under the following names:
.. data:: NONE
:noindex:
:value: Resampling.NEAREST
.. data:: LINEAR
:value: Resampling.BILINEAR
.. data:: CUBIC
:value: Resampling.BICUBIC
.. data:: ANTIALIAS
:value: Resampling.LANCZOS
Dither modes Dither modes
^^^^^^^^^^^^ ^^^^^^^^^^^^

View File

@ -487,7 +487,6 @@ class Image:
self._size = (0, 0) self._size = (0, 0)
self.palette = None self.palette = None
self.info = {} self.info = {}
self._category = 0
self.readonly = 0 self.readonly = 0
self.pyaccess = None self.pyaccess = None
self._exif = None self._exif = None
@ -604,7 +603,6 @@ class Image:
and self.mode == other.mode and self.mode == other.mode
and self.size == other.size and self.size == other.size
and self.info == other.info and self.info == other.info
and self._category == other._category
and self.getpalette() == other.getpalette() and self.getpalette() == other.getpalette()
and self.tobytes() == other.tobytes() and self.tobytes() == other.tobytes()
) )

View File

@ -66,9 +66,6 @@ class MicImageFile(TiffImagePlugin.TiffImageFile):
self._n_frames = len(self.images) self._n_frames = len(self.images)
self.is_animated = self._n_frames > 1 self.is_animated = self._n_frames > 1
if len(self.images) > 1:
self._category = Image.CONTAINER
self.seek(0) self.seek(0)
def seek(self, frame): def seek(self, frame):