Commit Graph

71 Commits

Author SHA1 Message Date
Hugo van Kemenade
eaeda4a6be
Merge pull request #8339 from radarhere/type_hint 2024-09-04 14:57:01 +03:00
Hugo van Kemenade
8aa1e9209b
Merge pull request #8336 from radarhere/type_hint_imagefile 2024-09-04 14:56:23 +03:00
Hugo van Kemenade
7e838bf409
Merge pull request #8256 from radarhere/jpeg2000_rgba 2024-09-04 14:48:01 +03:00
Andrew Murray
e47b181084 Added type hints 2024-08-31 18:48:16 +10:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Andrew Murray
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
6420f73613 Added type hints 2024-07-29 23:46:07 +10:00
Andrew Murray
77df988d06 Support RGBA palettes 2024-07-24 19:51:19 +10:00
Andrew Murray
8a05e32336 Added type hints 2024-07-08 20:09:45 +10:00
Andrew Murray
f3c3e52797
Added type hints (#8204)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:55:23 -06: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
Yay295
58d5a73fac raise SyntaxError when parsing codestream rather than returning an empty string
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-25 10:50:20 -05:00
Andrew Murray
6b5b2f6e58 Added type hints to Image 2024-06-18 22:44:17 +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
56fa3c658a Added type hints 2024-06-09 07:12:22 +10:00
Andrew Murray
6e40601f69 Added type hints 2024-06-04 20:37:09 +10:00
Andrew Murray
a8d154877d Added type hints 2024-05-13 18:47:51 +10:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Andrew Murray
84a02c851a
Merge pull request #7944 from nulano/type-image-open
Add type hints for `Image.open`, `Image.init`, and `Image.Image.save`
2024-04-07 08:31:55 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Andrew Murray
c61a481028 Support reading CMYK JPEG2000 images 2024-04-06 13:40:39 +11:00
Andrew Murray
0f49eaf230 Simplified code 2024-03-25 18:23:52 +11:00
scaramallion
1f182ce8da Fix parsing the J2K header 2024-03-25 17:39:21 +11:00
scaramallion
ce060a8e8b Fix 9-bit JPEG 2000 images not using I;16 2024-03-24 15:40:11 +11:00
Andrew Murray
f128d47e15 Added reading of JPEG2000 palettes 2024-03-12 19:30:23 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
pre-commit-ci[bot]
eb8405baa0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-11-06 13:24:42 +00:00
Christian Clauss
fd59f91d17 ruff: Minor optimizations of list comprehensions, x in set, etc. 2023-11-06 19:13:47 +06:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
9a7a448219 Increase similiarity between test_plt_marker and _parse_comment 2023-03-29 20:14:29 +11:00
Andrew Murray
1fd189164c Renamed "add_plt" to "plt" 2023-03-27 22:38:29 +11:00
Andrew Murray
7c3fd25433 Allow saving bytes as comments 2023-03-24 09:45:51 +11:00
Andrew Murray
176b2a2000 Merge branch 'master' into jp2k_options 2023-03-23 08:57:20 +11:00
Andrew Murray
cbde5b2626 Added reading of JPEG2000 comments 2023-03-09 13:36:22 +11:00
Andrew Murray
79e67cb5c3
Removed default argument 2023-01-31 21:42:25 +11:00
pre-commit-ci[bot]
41b3ac8aed [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-01-19 00:52:43 +00:00
Josh Ware
de43bc99c8 Added support for jpeg2000 comments and PLT marker segments 2023-01-19 11:37:14 +11:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Andrew Murray
6ddbe4cbf0 Added signed option when saving JPEG2000 images 2022-11-03 18:26:31 +11:00
Hugo van Kemenade
ee85e387ba Remove redundant parentheses 2022-04-10 23:39:54 +03:00
scaramallion
4e7f041795 Rename parameter and add more tests 2022-03-31 22:13:17 +03:00
scaramallion
f8a74cbed1 Fix priority when selecting j2k kind 2022-03-31 22:13:17 +03:00
scaramallion
de26f78eb1 Add 'mct' and 'use_jp2' options for J2K saving 2022-03-31 22:13:17 +03:00
Andrew Murray
72b7ab54bd pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
Andrew Murray
6596e31605 Determine mode purely from ihdr header box 2021-08-05 01:06:01 +10:00
Andrew Murray
dab5721c34 Favour integer operations when calculating DPI 2021-08-02 22:09:35 +10:00
Andrew Murray
8828080868 Removed unreachable code 2021-08-01 18:39:54 +10:00
Andrew Murray
0c600f1d88 Prevent reading past end of file pointer even if box length allows it 2021-08-01 18:39:47 +10:00
Andrew Murray
3ee5a9b094 Stop reading from "res " after all information is extracted 2021-08-01 18:39:35 +10:00