Commit Graph

4491 Commits

Author SHA1 Message Date
Andrew Murray
076b93f497 Only use alpha flag for bcn if alpha exists 2025-05-31 21:33:30 +10:00
Andrew Murray
3f09f9b5cc DXT1 supports 8-bit alpha 2025-05-31 21:33:20 +10:00
Andrew Murray
320dff834d Thumbnail does not scale up 2025-05-31 21:33:11 +10:00
Andrew Murray
99f8d8ff39 Convert to RGBA for low-res DXT1 2025-05-31 21:33:02 +10:00
Andrew Murray
766f60e8b2 Removed HEADER_V72 and HEADER_V73 2025-05-31 21:32:54 +10:00
Andrew Murray
8cb320a6d1 Comment unused enums 2025-05-31 21:32:44 +10:00
Andrew Murray
270313048d Do not use buffer 2025-05-31 21:32:30 +10:00
Andrew Murray
b40aa6888c Default to pixel format specific to mode 2025-05-31 21:32:20 +10:00
Andrew Murray
487c7b2be1 Restored use of bytes 2025-05-05 07:38:18 +10:00
REDxEYE
1eb30cf574
Update src/PIL/VtfImagePlugin.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-05 00:31:22 +03:00
Andrew Murray
f594d20623 Removed unneeded converts 2025-05-05 07:24:34 +10:00
Andrew Murray
2f16077586 Use ImageFile._Tile 2025-05-05 07:23:16 +10:00
Andrew Murray
2ec01c9c58 Added type hints 2025-05-05 06:44:37 +10:00
Andrew Murray
64f992e7fc Corrected comment 2025-05-05 06:35:11 +10:00
Andrew Murray
e29c0a511a Removed support for saving DXT1_ONEBITALPHA 2025-05-04 07:44:18 +10:00
Andrew Murray
1c7b3e4b1f Merge branch 'main' into vtf-support 2025-05-04 07:42:43 +10:00
Andrew Murray
47bebfc801 Allow loading state from Pillow < 11.2.1 2025-04-29 14:57:10 +10:00
Andrew Murray
753964ca48 Fixed type hints 2025-04-26 14:02:49 +10:00
Andrew Murray
225182414c libavif below 1.0 is not supported 2025-04-25 17:14:13 +10:00
Andrew Murray
8fe7a7aaf8 Update redirected URL 2025-04-21 17:32:47 +10:00
Adian Kozlica
4402797b35
Add support for Grim in Wayland sessions ImageGrab (#8912)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-04-21 12:36:40 +10:00
Hugo van Kemenade
f9083264ff 11.3.0.dev0 version bump 2025-04-12 20:56:35 +03:00
Hugo van Kemenade
339bc5db93 11.2.1 version bump 2025-04-12 19:55:46 +03:00
Hugo van Kemenade
7a0092f207 Remove incomplete 11.2.0 release, bill as 11.2.1 instead 2025-04-12 18:56:38 +03:00
Hugo van Kemenade
8c4510cb23 Fix clang-format: Configuration file(s) do(es) not support C 2025-04-07 22:25:12 +03:00
pre-commit-ci[bot]
a5a8ece5d2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-07 17:17:36 +00:00
Frankie Dintino
9f654ff748
Fixed conversion of AVIF image rotation property to EXIF orientation (#8866) 2025-04-04 16:41:11 +03:00
Andrew Murray
9f4195752d
Added type hints (#8867) 2025-04-03 13:24:37 +03:00
Andrew Murray
2d452c82e5
Removed condition that is always true (#8862) 2025-04-03 13:17:54 +03:00
Andrew Murray
8dbbce624f Compare absolute path of filename 2025-04-02 12:16:25 +11:00
Andrew Murray
1103e82d17 Include filename in state 2025-04-02 11:14:58 +11:00
mergify[bot]
7c56b383ff
Merge pull request #8842 from AdianKozlica/image_grab_wayland_kde
Add KDE Wayland support for ImageGrab
2025-04-01 09:38:56 +00:00
mergify[bot]
64178415e6
Merge pull request #8852 from radarhere/save
Only change readonly if saved filename matches opened filename
2025-04-01 09:22:14 +00:00
Andrew Murray
98e74fd7a0
Merge pull request #8516 from radarhere/imagegrab
Allow HWND to be passed to ImageGrab.grab() on Windows
2025-04-01 18:45:03 +11:00
Adian Kozlica
2b62c0beeb
Merge branch 'main' into image_grab_wayland_kde 2025-04-01 09:43:52 +02:00
Andrew Murray
a7537b1b06 Only change readonly if saved filename matches opened filename 2025-04-01 18:31:04 +11:00
wiredfool
5c76e7ec17
Image -> Arrow support (#8330)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-01 09:10:45 +03:00
Frankie Dintino
7d50816f0a
Add AVIF plugin (decoder + encoder using libavif) (#5201)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-01 07:13:21 +03:00
Andrew Murray
f673f3e543
Close file handle on error (#8846) 2025-03-30 21:16:50 +03:00
Andrew Murray
4236b583a1 Do not import TYPE_CHECKING 2025-03-30 22:16:16 +11:00
pre-commit-ci[bot]
d2683e052f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-03-30 11:13:51 +00:00
Andrew Murray
80d5b421eb
Do not import type checking
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-03-30 22:13:21 +11:00
Andrew Murray
ca9f4f8304
Merge branch 'main' into imagegrab 2025-03-30 21:53:23 +11:00
Adian Kozlica
ec11f7aaed
Merge branch 'main' into image_grab_wayland_kde 2025-03-29 23:51:29 +01:00
Andrew Murray
bce83ac800
Enable mmap on PyPy (#8840) 2025-03-29 18:36:36 +02:00
Andrew Murray
25653d2f87
Corrected P mode save (#8685) 2025-03-29 18:34:42 +02:00
Andrew Murray
e8a9b56603
Improved connecting discontiguous corners (#8659) 2025-03-29 18:33:51 +02:00
Andrew Murray
03dc994baa
Check that _fp type is not DeferredError before use (#8640) 2025-03-29 18:30:30 +02:00
Andrew Murray
6bffa3a9d4
Only read until the offset of the next tile (#8609)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:29:02 +02:00
Andrew Murray
140e426082
Added USE_RAW_ALPHA (#8602)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:27:00 +02:00