Andrew Murray
6420f73613
Added type hints
2024-07-29 23:46:07 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 ( #8183 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
f2302ab716
Added type hints
2024-06-24 21:04:33 +10:00
Andrew Murray
be73b13ad3
Added type hints
2024-06-12 21:15:55 +10:00
Andrew Murray
9afe9d2769
Added type hints
2024-06-11 06:52:14 +10:00
Andrew Murray
8a3a72e51d
Added type hints
2024-05-18 16:06:50 +10:00
Andrew Murray
a8d154877d
Added type hints
2024-05-13 18:47:51 +10:00
Andrew Murray
5c858d75e4
Added type hints
2024-02-17 10:45:52 +11:00
Andrew Murray
c75a93b9a3
Added type hints
2024-01-15 16:11:48 +11:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency
2023-12-21 12:58:07 +02:00
Hugo van Kemenade
f7c3f2a447
Use underscore as throwaway variable
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-05 00:03:38 +02:00
Hugo van Kemenade
27d7bd10c8
Use list comprehensions to create transformed lists
2023-12-03 21:59:44 +02:00
Andrew Murray
55c5587437
Fill identical pixels with transparency in subsequent frames
2023-11-25 19:16:32 +11:00
Aarni Koskela
0c705692ea
Remove old commented-out code
2023-11-06 21:21:07 +02:00
Andrew Murray
8b71f3d3c1
Added messages to errors
2023-10-19 18:42:41 +11:00
Hugo van Kemenade
5dbef9e0a8
Remove ImagePalette size parameter, deprecated in 8.4.0
2023-04-06 16:11:36 +03:00
pre-commit-ci[bot]
24183d652e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Hugo van Kemenade
2ae55ccbda
Improve exception traceback readability
2022-12-30 00:07:52 +02:00
Andrew Murray
0b2cef5b03
Updated error message
2022-10-10 12:02:10 +11:00
João S. O. Bueno
f9a3178bb3
Fix #6652 : Handle translucent color used in RGB ImagePallete
2022-10-09 11:47:24 -03:00
Andrew Murray
2a7e603ae2
Defer parsing of palette into colors
2022-09-09 22:28:30 +10:00
Hugo van Kemenade
4cb8e4b3fa
Add deprecations helper
2022-04-06 13:19:52 +03:00
Andrew Murray
216e3d79a9
Removed documentation for deprecated size parameter
2022-04-02 23:33:19 +11:00
Hugo van Kemenade
6e310e3e2e
Update expected Pillow 10 release date: 2023-07-01
2021-10-18 15:48:49 +03:00
Hugo van Kemenade
4c7777c425
Merge pull request #5599 from radarhere/palette
...
Updates for ImagePalette channel order
2021-08-24 14:52:46 +03:00
Andrew Murray
a9372d5cf0
Fixed generated palettes
2021-07-29 16:20:20 +10:00
Andrew Murray
d0a30ec369
Updated documentation
2021-07-29 16:20:20 +10:00
Andrew Murray
41b968ad10
Deprecate ImagePalette size parameter
2021-07-29 16:19:53 +10:00
Andrew Murray
a43d46e87a
Corrected size parameter documentation [ci skip]
2021-07-26 22:53:39 +10:00
Andrew Murray
eab2b17d64
Do not use background or transparency index for new color
2021-06-30 00:05:25 +10:00
Andrew Murray
1ee30ded0b
Fixed reloading palette
2021-06-28 22:27:05 +10:00
Andrew Murray
7005e66f00
Use first index for repeated color
2021-06-27 16:33:47 +10:00
Andrew Murray
1606d9adf3
Removed code from before Python 3.2
2021-06-23 19:29:06 +10:00
Andrew Murray
b6b362c807
Set color after attaching palette in expand()
2021-06-23 19:28:56 +10:00
Andrew Murray
fa559277fb
When allocating a new color, repurpose an unused index if necessary
2021-06-23 19:27:08 +10:00
Andrew Murray
f3451aefc6
Convert opaque RGBA color to RGB if that is the palette mode
2021-06-23 19:26:53 +10:00
Andrew Murray
3b9792ab74
Convert getcolor input to RGBA if that is the palette mode
2021-06-23 19:23:34 +10:00
Andrew Murray
4d36feefc7
Set palette to be empty by default
2021-06-23 19:22:21 +10:00
Andrew Murray
dc89f0eaa9
Set colors
2021-06-23 19:16:04 +10:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Ram Rachum
2f0d430807
Fix exception causes all over the codebase
2020-06-21 13:21:25 +03:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Andrew Murray
046df78448
Fixed typos
2018-08-11 16:39:49 +10:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00