Commit Graph

131 Commits

Author SHA1 Message Date
Andrew Murray
7f3751d498 Remove type hint ignore 2026-04-04 19:29:11 +11:00
Hugo van Kemenade
43e4ebe037
Do not use palette from grayscale or bilevel colorspace when reading JPEG2000 images (#9468) 2026-03-26 15:33:18 +02:00
Andrew Murray
33d62fc8a1 Added error messages 2026-03-25 23:11:59 +11:00
Andrew Murray
77df8a36c1 Merge branch 'main' into jpeg2000_l 2026-03-21 01:10:35 +11:00
Andrew Murray
4f5802b6b1 Do not use palette from grayscale or bilevel colorspace 2026-03-16 23:45:22 +11:00
Andrew Murray
29509ffa75 Detect CMYK palette in JPEG2000 images 2026-03-16 20:48:46 +11:00
Andrew Murray
ce11a0c499 Added ImageFile context manager 2026-01-01 20:31:22 +11:00
Andrew Murray
3d4119521c
Close file pointer earlier (#8895) 2025-04-16 18:49:57 +03:00
Andrew Murray
14fb62e36c
Assert image type (#8619) 2025-03-30 10:42:46 +03:00
Andrew Murray
6cc5f1f0ad Simplified code 2025-03-19 20:58:40 +11:00
Andrew Murray
baa299a6f4 Moved code outside of context manager 2025-03-08 09:56:23 +11:00
Andrew Murray
92cc9bf902 Support reading grayscale images with 4 channels 2025-03-03 08:46:20 +11:00
Andrew Murray
f4db366e41 Merge branch 'main' into px 2025-02-07 08:51:58 +11:00
Andrew Murray
e19a1496c2
Use monkeypatch (#8707)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 12:17:51 +02:00
Andrew Murray
a34a9cd6d1 Improved test coverage 2025-01-09 14:49:48 +11:00
Andrew Murray
973cd6481a Merge branch 'main' into jpeg2000_cmyk_save 2024-12-28 22:08:08 +11:00
Andrew Murray
dd410e4b32 Added reading of J2K comments 2024-12-26 10:51:45 +11:00
Andrew Murray
601a56def1 Assert palette is not None 2024-12-23 12:03:13 +11:00
Andrew Murray
5d5543b35c Assert that load() does not return None 2024-12-23 11:57:27 +11:00
Andrew Murray
522505b714 Support saving CMYK JPEG2000 images 2024-12-10 18:33:12 +11:00
Andrew Murray
f92599aa93 Renamed fixture 2024-10-26 19:05:16 +11:00
Andrew Murray
5b06597075 Use fixture to re-open image for each test 2024-10-18 19:29:22 +11:00
Hugo van Kemenade
7e838bf409
Merge pull request #8256 from radarhere/jpeg2000_rgba 2024-09-04 14:48:01 +03:00
Andrew Murray
55f49393af Treat unknown colorspace as unspecified 2024-09-03 09:55:06 +10:00
Hugo van Kemenade
5c282d0299 Fix PT014: duplicate test cases in pytest.mark.parametrize 2024-08-17 11:46:15 +03:00
Andrew Murray
77df988d06 Support RGBA palettes 2024-07-24 19:51:19 +10:00
Hugo van Kemenade
2756cd5273
Merge pull request #8146 from Yay295/jp2_parsing 2024-06-26 11:32:57 +03:00
Andrew Murray
88b21e7254 Added test 2024-06-25 10:50:21 -05:00
Andrew Murray
44b82e4513 Use more specific error 2024-06-25 21:40:30 +10:00
Andrew Murray
291ee35204 Added type hints 2024-06-18 23:03:03 +10:00
Andrew Murray
e68cec640a Added type hints 2024-05-30 12:00:50 +10:00
Andrew Murray
c61a481028 Support reading CMYK JPEG2000 images 2024-04-06 13:40:39 +11:00
scaramallion
7ca9bddf93
Update Tests/test_file_jpeg2k.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-25 20:13:45 +11:00
pre-commit-ci[bot]
901c13c4b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-24 04:47:28 +00: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
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
cdc498e6f3 Added type hints 2024-02-07 19:16:28 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests (#7756)
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Hugo van Kemenade
53c3cd9f8e isort Tests 2024-01-20 13:23:03 +02:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
5eea6ed633 Replace 'assert False' with pytest.fail() 2023-11-12 22:30:28 +02:00
Andrew Murray
26ca569cbe Parametrized test 2023-07-22 20:15:40 +10:00
Andrew Murray
6d3c1985e0 Assert false instead of raising an error 2023-03-29 22:20:57 +11:00
Andrew Murray
9a7a448219 Increase similiarity between test_plt_marker and _parse_comment 2023-03-29 20:14:29 +11:00
Andrew Murray
2f66d2d6a1 Changed maximum comment length to 65531 2023-03-29 19:25:35 +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
d3923f7142 Use reading of comments to test saving comments 2023-03-23 17:53:35 +11:00
Andrew Murray
176b2a2000 Merge branch 'master' into jp2k_options 2023-03-23 08:57:20 +11:00