Commit Graph

70 Commits

Author SHA1 Message Date
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
Andrew Murray
73a383fa72 Use rawmode instead of splitting and merging 2025-01-05 06:11:54 +11:00
Andrew Murray
bd56a95659 Use namedtuple _replace 2025-01-05 05:30:14 +11:00
Andrew Murray
6b75e06875 Do not reread start of header in decoder 2025-01-01 22:58:04 +11:00
Andrew Murray
b89cc09944 Corrected BLP1 alpha depth handling 2025-01-01 12:22:55 +11:00
Andrew Murray
871963b8dd Replaced tuple args with mode string where equivalent 2024-11-13 22:53:18 +11:00
Andrew Murray
06c331af5d Added type hints to frombuffer 2024-09-06 15:16:59 +10:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Andrew Murray
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
8a05e32336 Added type hints 2024-07-08 20:09:45 +10:00
Andrew Murray
f2302ab716 Added type hints 2024-06-24 21:04:33 +10:00
Andrew Murray
1eb960f7e3 Added type hints 2024-06-11 23:26:00 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
6e40601f69 Added type hints 2024-06-04 20:37:09 +10:00
Andrew Murray
8a3a72e51d Added type hints 2024-05-18 16:06:50 +10:00
Andrew Murray
6036d81d97 Added type hints 2024-05-04 20:51:54 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Andrew Murray
badc92079d Do not cast to bytes for set_as_raw() 2024-04-01 15:24:40 +11:00
pre-commit-ci[bot]
27b0cf67e7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
5f04b3d278
Merge pull request #7289 from radarhere/undefined_palette 2023-10-05 09:31:02 -06:00
Andrew Murray
60d88389ae Removed unused code 2023-10-02 11:11:35 +11:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
fd310512b9 Set C palette to be empty by default 2023-07-17 23:04:43 +10:00
Hugo van Kemenade
c8ec15980b Remove constants deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Andrew Murray
3ec8fa6147 Do not trust JPEG decoder to determine image is CMYK 2022-11-30 13:49:07 +11:00
Andrew Murray
f7363c1091 Decode JPEG compressed BLP1 data in original mode 2022-10-23 15:54:55 +11:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
Cleanup: various
2022-04-26 18:51:44 +10:00
Hugo van Kemenade
ee85e387ba Remove redundant parentheses 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
4cb8e4b3fa Add deprecations helper 2022-04-06 13:19:52 +03:00
Andrew Murray
54a4a38e42 Return -1 when finished decoding 2022-03-08 19:48:58 +11:00
Andrew Murray
e36774617c Added BLP1 saving 2022-02-25 23:58:13 +11:00
Andrew Murray
1859bc3462 Added reading non-JPEG BLP1 as RGBA 2022-02-25 17:50:21 +11:00
Andrew Murray
3ec928251c Fixed reading uncompressed BLP2 with alpha 2022-02-25 16:54:53 +11:00
Andrew Murray
169025df6c Added BLP saving 2022-02-25 16:53:53 +11:00
Andrew Murray
747029bea9 Simplified code 2022-02-25 16:07:32 +11:00
Hugo van Kemenade
3d33987d7c
Merge pull request #4685 from Meithal/patch-3
Correctly read JPEG compressed BLP images
2022-02-19 11:03:36 +02:00
Hugo van Kemenade
07741c9315
Merge pull request #5954 from radarhere/enum 2022-02-18 15:53:41 +02:00
Andrew Murray
985e4fbe40 Simplified code 2022-02-17 22:22:34 +11:00
Andrew Murray
bba493d702 Replaced absolute PIL import with relative import 2022-02-15 21:50:20 +11:00
Andrew Murray
1be53c8bb3 Removed debugging 2022-01-18 09:08:50 +11:00
Andrew Murray
ed8073e846 Deprecated constants in favour of enums 2022-01-15 10:07:07 +11:00
Andrew Murray
f8e4e9c2dd Added enums 2022-01-15 09:02:31 +11:00
Andrew Murray
8e9da1559b Lint fix 2021-12-30 14:47:59 +11:00
Meithal
a139b97845 Cleanup 2021-07-15 20:48:47 +02:00
Meithal
3fbc9eb229 self.mode = "BGRA" wasn't correct and captured by #affa059 2021-07-15 20:33:35 +02:00
Meithal
919f38e3d9 Try test 2021-07-05 00:20:15 +02:00