Commit Graph

4828 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
7cbe8c4924 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2026-02-02 17:17:55 +00:00
Andrew Murray
fc4dbc3810
Remove unnecessary code in WmfHandler (#9411)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2026-01-30 17:41:44 +02:00
Andrew Murray
6a5c588c5f
Fix docstring typo (#9407) 2026-01-27 08:58:11 +11:00
Hugo van Kemenade
a293273b31 Fix docstring typo 2026-01-26 16:10:37 +02:00
Andrew Murray
6564325e43
Encode using latin-1 in PSDraw text() to match the latin-1 specification in setfont() (#9403) 2026-01-26 13:25:27 +11:00
Andrew Murray
93c8a60784
Lazy import only required plugin: open 2.3-15.6x & save 2.2-9x faster (#9398) 2026-01-26 13:25:14 +11:00
Andrew Murray
b6178303a1
Improve error message (#9392)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-01-25 23:01:02 +02:00
Andrew Murray
d08d7ee99e Check ext is not empty during save 2026-01-25 22:55:19 +11:00
Hugo van Kemenade
2b186fceb8 Use __spec__.parent instead of calculating each time 2026-01-24 23:02:39 +02:00
Hugo van Kemenade
c036185514
Ensure lower before checking if ext in EXTENSION
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2026-01-24 22:48:41 +02:00
Hugo van Kemenade
34814d8d2f
Improve wording
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2026-01-24 12:52:49 +02:00
Andrew Murray
76d3116ef0 Added logger messages to match init() 2026-01-24 09:44:31 +11:00
Andrew Murray
a6b36f0b6b format overrides file extension when saving 2026-01-24 09:44:31 +11:00
Andrew Murray
a0f51493ca Refer to lazy importing, as lazy loading of images is separate 2026-01-24 09:44:31 +11:00
Steve Dougherty
a6a701c4db
Match PSDraw text() encoding to the latin-1 specification in setfont()
Without this, characters that are in latin-1 but reflected differently in UTF-8 will not be properly rendered. For example,"ó" becomes "ó".
2026-01-21 06:01:00 -05:00
Hugo van Kemenade
096c479cfb
If plugin has already been imported and registered the extension, return early
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2026-01-19 11:28:42 +02:00
Andrew Murray
b06118c2b3 Do not register empty extension 2026-01-19 17:24:28 +11:00
Hugo van Kemenade
6b9de40533 Lazy import only required plugin 2026-01-18 22:59:28 +02:00
Andrew Murray
426ad8307d Fix joining rounded rectangle corners 2026-01-08 19:27:19 +11:00
Andrew Murray
b71109d435
Merge branch 'main' into load_palette 2026-01-02 20:21:23 +11:00
Andrew Murray
4337139f0c 12.2.0.dev0 version bump 2026-01-02 20:16:49 +11:00
Andrew Murray
46f45f674d 12.1.0 version bump 2026-01-02 17:03:05 +11:00
Hugo van Kemenade
c9ac097edb
Simplify band splitting (#9291) 2026-01-02 07:42:46 +02:00
Andrew Murray
3baedf2648
Deprecate getdata(), in favour of new get_flattened_data() (#9292) 2026-01-02 10:59:56 +11:00
Hugo van Kemenade
8dee8dd5ba
Add ImageFile context manager (#9367) 2026-01-01 15:50:26 +02:00
Hugo van Kemenade
b2d9bc3c76
Support saving APNG float durations (#9365) 2026-01-01 15:49:03 +02:00
Hugo van Kemenade
f130c10a9c
Allow 1 mode images in MorphOp (#9348) 2026-01-01 15:30:47 +02:00
Andrew Murray
ce11a0c499 Added ImageFile context manager 2026-01-01 20:31:22 +11:00
Andrew Murray
51b35d17e1 Added fp type hint 2026-01-01 20:31:22 +11:00
Andrew Murray
a868c29eb1
Assert fp is not None (#8617) 2026-01-01 20:01:38 +11:00
Andrew Murray
91f219fdcf Support saving float durations 2026-01-01 17:32:59 +11:00
Andrew Murray
d62955031b
Allow for duplicate font variation styles (#9362)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-01-01 08:53:04 +11:00
Andrew Murray
2ebfe30ae3
Added return type to ImageFile _close_fp() (#9356) 2025-12-31 14:47:50 +02:00
Andrew Murray
19910ed03e
Call parent verify method (#9357) 2025-12-31 14:47:33 +02:00
Andrew Murray
6b892c495c Merge branch 'main' into imagemorph_get_on_pixels 2025-12-31 23:10:34 +11:00
Andrew Murray
0a9a47fb9b
Update ImageMorph documentation (#9349)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-31 14:02:31 +02:00
Andrew Murray
2ebb3e9964
Use different variables for Image and ImageFile instances (#9316) 2025-12-28 23:09:46 +02:00
Andrew Murray
a04c9806b1
Return LUT from LutBuilder build_default_lut() (#9350) 2025-12-28 23:03:47 +02:00
Andrew Murray
faa843e9c2
Simplify WebP code (#9329) 2025-12-28 23:01:23 +02:00
Andrew Murray
4be5b8a2fb
Use unsigned long for DWORD (#9352) 2025-12-28 07:34:57 +11:00
Andrew Murray
a704711404 Allow 1 mode images in apply() and match() 2025-12-23 14:13:51 +11:00
Andrew Murray
9b7200d2b4 Allow 1 mode images in MorphOp get_on_pixels() 2025-12-23 12:50:26 +11:00
Andrew Murray
ca21683316
Cast to UINT32 before shifting bits (#9347) 2025-12-22 18:12:10 +11:00
Andrew Murray
fd1ddd6d56 Use consistent type 2025-12-03 22:46:42 +11:00
Andrew Murray
61b1c3c841 Do not change variable type 2025-12-03 22:46:42 +11:00
Andrew Murray
4024f0287d Assert image type 2025-12-03 22:46:42 +11:00
Andrew Murray
b0a5bc2a6b
Allow window ID to be passed to ImageGrab.grab() on macOS (#9070) 2025-12-01 20:42:09 +11:00
Hugo van Kemenade
77e16b1030
Apply encoder options when saving multiple PNG frames (#9300) 2025-11-30 22:21:42 +02:00
Hugo van Kemenade
2150f088ed
Read all non-zero transparency from mode 1 PNG images as 255 (#9282) 2025-11-30 22:20:38 +02:00
Hugo van Kemenade
c9095cb02a
Support writing IFD, SIGNED_RATIONAL and InkNames TIFF tags (#9276) 2025-11-30 22:14:18 +02:00