Commit Graph

206 Commits

Author SHA1 Message Date
Andrew Murray
5bae934317 Added type hints 2024-07-12 21:16:56 +10:00
Hugo van Kemenade
48a921b31f
Merge pull request #8087 from radarhere/png_save_all 2024-06-25 06:21:44 -06:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp 2024-06-05 15:53:46 +10:00
Andrew Murray
e68cec640a Added type hints 2024-05-30 12:00:50 +10:00
Andrew Murray
f34360d1e3 When saving multiple frames, convert to mode rather than raw mode 2024-05-27 18:09:46 +10:00
Andrew Murray
0f1a0fc501 Improved consistency of XMP handling 2024-05-20 23:11:50 +10:00
Andrew Murray
4af831e70c Accept '.zlib-ng' suffix to zlib version 2024-04-24 23:45:25 +10:00
Hugo van Kemenade
1b6e68eaae
Merge pull request #7823 from radarhere/png_iccp 2024-03-11 17:42:22 +02:00
Andrew Murray
b7f39076a1
Merge pull request #7846 from radarhere/type_hints
Added type hints to additional tests
2024-03-03 21:33:08 +11:00
Andrew Murray
d6a3f89e27 Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
a20abff5e4
Merge pull request #7709 from lajiyuan/main
Handle truncated chunks at the end of PNG images
2024-03-01 22:25:28 +11:00
Andrew Murray
383ac4fca0 Fixed reading PNG iCCP compression method 2024-02-22 19:50:36 +11:00
Andrew Murray
e39765d755 Added type hints 2024-02-20 15:41:20 +11:00
Andrew Murray
cdc498e6f3 Added type hints 2024-02-07 19:16:28 +11:00
Andrew Murray
58554de0c8
Merge branch 'main' into main 2024-02-01 00:06:05 +11:00
FangFuxin
b8769d1cf5
Update Tests/test_file_png.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-31 21:02:50 +08: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
Andrew Murray
62e6d62518 Test error is raised without LOAD_TRUNCATED_IMAGES 2024-01-16 18:49:25 +11:00
Andrew Murray
fe7b6d9e80 Corrected expected image path 2024-01-16 18:43:57 +11:00
pre-commit-ci[bot]
b2711c3e8b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-16 07:37:00 +00:00
FangFuxin
44e77a22b5 Fix png image plugin load_end func handle truncated file. 2024-01-16 07:36:20 +00:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Andrew Murray
a3fd009875 Match warning message 2023-10-06 17:31:06 +11:00
Andrew Murray
2d9c4e663f
Merge pull request #7302 from radarhere/png_i16
Allow saving I;16B images as PNG
2023-10-06 15:45:58 +11:00
Andrew Murray
9ef7cb39de Updated zlib to 1.3 2023-08-18 22:22:51 +10:00
Andrew Murray
2db354af43 Allow saving I;16B images as PNG 2023-07-24 17:17:15 +10:00
Matthew Treinish
6215cd3e0f
Update tests to handle no longer raising 2023-07-06 09:28:35 -04: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
2df4865e42 Use 'key in mydict' instead of 'key in mydict.keys()' 2023-01-08 13:47:46 +02:00
Andrew Murray
88f15eb9f0 Do not save EXIF from info 2022-12-23 12:10:36 +11:00
Mark Mayo
69baeccf2e some pylint warnings
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Andrew Murray
40a0999303 Raise ValueError if PNG sRGB chunk is truncated 2022-07-11 20:02:41 +10:00
Andrew Murray
51bdc99b96 Raise ValueError if PNG chunks are truncated 2022-05-01 13:45:58 +10:00
Andrew Murray
dae1f691c2 Updated checks that no warnings were raised 2022-02-21 13:49:01 +11:00
Andrew Murray
aeb549ef8f Fixed unpacking I;16B to I;16 on big endian 2021-12-28 17:38:01 +11:00
Andrew Murray
3af00edc85 Added context managers 2021-11-25 23:16:07 +11:00
Andrew Murray
0aa8bd00e7 Added warning if defusedxml is not found 2021-06-30 11:29:13 +10:00
Andrew Murray
d9d811ff21 Replaced xml.etree.ElementTree with defusedxml.ElementTree 2021-06-30 11:28:44 +10:00
Andrew Murray
cd31dae0d1 Added getxmp() for PNG 2021-06-12 13:57:14 +10:00
Hugo van Kemenade
87dca4f477
Merge pull request #5493 from radarhere/png_load_end
Ensure PNG seeks to end of previous chunk at start of load_end
2021-06-06 10:35:04 +03:00
Hugo van Kemenade
a72ae6823c
Merge pull request #5476 from radarhere/dpi_rounding 2021-05-16 20:00:10 +03:00
Andrew Murray
bf97a92bc6 Ensure PNG seeks to end of previous chunk at start of load_end 2021-05-14 13:18:49 +10:00
Andrew Murray
9d72542c08 Removed DPI rounding from PNG loading 2021-05-07 20:50:01 +10:00
Andrew Murray
e7749abdf9 Corrected error in restoring sys.stdout 2021-05-07 20:44:46 +10:00
Andrew Murray
0f68e63793 Allow for sys.stdout.buffer to be missing 2021-05-03 18:07:05 +10:00