Commit Graph

4428 Commits

Author SHA1 Message Date
Aleksander Błażelonis
7e507ba7ec
Merge bb06057f51 into b1f7ba0a41 2025-03-31 13:32:17 +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
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
Andrew Murray
93cdfeb488
Prevent TIFFRGBAImageBegin from applying image orientation (#8556)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:25:57 +02:00
Andrew Murray
6d42449788
Allow loading of EMF images at a given DPI (#8536)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:25:13 +02:00
Hugo van Kemenade
2579973815
Merge pull request #8506 from radarhere/emf_records
Skip failing records when rendering WMF images
2025-03-29 18:19:10 +02:00
Andrew Murray
10ccbd7788
If append_images is populated, default save_all to True (#8781)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-27 18:01:09 +02:00
Hugo van Kemenade
095f5992bc
Merge pull request #8826 from radarhere/gimp
Added GimpPaletteFile frombytes() to allow for unlimited parsing
2025-03-27 14:47:29 +02:00
Andrew Murray
3c185d1f69
Do not load image during save if file extension is unknown (#8835)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-27 14:44:27 +02:00
Andrew Murray
295a5e9bd7 Do not convert BC1 LUT to UINT32 2025-03-27 21:36:17 +11:00
Andrew Murray
510bc05577 Added frombytes() to allow for unlimited parsing 2025-03-20 23:12:35 +11:00
Andrew Murray
0888dc02ac Allow for two header fields and a comment 2025-03-20 23:10:09 +11:00
Andrew Murray
acd8548f6e Removed FIXME 2025-03-20 22:36:59 +11:00
Andrew Murray
ba2c4291ea Updated comment 2025-03-19 19:22:15 +11:00
Hugo van Kemenade
e1bf0f647f
Merge pull request #8805 from radarhere/gimp
Start from zero index when reading GimpPaletteFile
2025-03-18 15:32:24 +02:00
Hugo van Kemenade
74fec91d33
Merge pull request #8807 from radarhere/dxt1
Support saving DDS images with pixel formats
2025-03-18 15:31:38 +02:00
Andrew Murray
841ba163fd If every tile covers the image, only use the last offset 2025-03-18 00:21:08 +11:00
Andrew Murray
cd11792c15 Added BC5 saving 2025-03-17 07:55:25 +11:00
Andrew Murray
b0315cc603 Added BC2 loading and saving 2025-03-17 07:55:24 +11:00
Andrew Murray
f1a61a1e76 Added DXT3 saving 2025-03-17 07:55:24 +11:00
Andrew Murray
9f619b814f Added BC3 loading and saving 2025-03-17 07:55:24 +11:00
Andrew Murray
9430bbe5a1 Added DXT5 saving 2025-03-17 07:55:24 +11:00
Andrew Murray
3dbd0e57ba Added DXT1 encoding 2025-03-17 07:55:24 +11:00
Andrew Murray
669a288beb Convert all entries to bytes at once 2025-03-17 07:52:51 +11:00
Andrew Murray
ca0c940cb1 Do not add palette entries when reading other lines 2025-03-17 07:52:51 +11:00
Andrew Murray
6e597a1ca7 Do not force palette length to be 256 2025-03-17 07:52:51 +11:00
Andrew Murray
1f6fd3b994 Only convert to int if there are enough items 2025-03-17 07:52:51 +11:00
Andrew Murray
e1cd9ad5ac Use maxsplit 2025-03-17 07:52:51 +11:00
Andrew Murray
5ba72a9b54
Merge pull request #8800 from radarhere/path_lists
Allow coords to be sequence of lists
2025-03-05 19:15:55 +02:00
Hugo van Kemenade
5e9eea12f3
Merge pull request #8803 from radarhere/abstract
Use ABCMeta in classes with abstractmethod
2025-03-05 18:15:33 +02:00
Hugo van Kemenade
ebdfca329e
Merge pull request #8786 from radarhere/openjpeg
Support reading grayscale JPEG2000 images with 4 channels
2025-03-05 18:07:20 +02:00
Hugo van Kemenade
00593ff3f8
Merge pull request #8780 from radarhere/save_all
Allow encoderconfig and encoderinfo to be set for appended TIFF images
2025-03-05 18:04:28 +02:00
Andrew Murray
d186a2a8d6 Replace NotImplementedError with abstractmethod 2025-03-05 21:50:09 +11:00
Andrew Murray
2309f0fa60 Inherit classes with abstractmethod from ABC 2025-03-05 21:30:24 +11:00
Hugo van Kemenade
a2b13cc02a Call startswith/endswith once with a tuple 2025-03-03 23:57:40 +02:00
Hugo van Kemenade
e4cac21044 Don't use start=0 in range() 2025-03-03 23:57:40 +02:00
Hugo van Kemenade
721a2fe3b1
Merge pull request #8792 from radarhere/xmp
Corrected exif_transpose error when XMP is tuple
2025-03-03 18:44:55 +02:00
Hugo van Kemenade
7700293438
Merge pull request #8793 from radarhere/gd
Fixed loading GD images
2025-03-03 18:43:03 +02:00
Hugo van Kemenade
a4f5feaf74
Merge pull request #8794 from radarhere/outline
Image.core.outline will no longer raise an AttributeError
2025-03-03 18:19:30 +02:00
Hugo van Kemenade
4e550d47f3
Merge pull request #8791 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.15.0
2025-03-03 18:10:42 +02:00
Hugo van Kemenade
1a62ef9855
Merge pull request #8782 from radarhere/imagetk
Removed ImageTk._show
2025-03-03 18:08:13 +02:00
Hugo van Kemenade
989a35830b
Merge pull request #8773 from radarhere/eof
_seek_check already raises an EOFError
2025-03-03 17:36:24 +02:00
Andrew Murray
a1a467bda2 Image.core.outline will no longer raise an AttributeError 2025-03-03 23:55:19 +11:00
Andrew Murray
51183c2204 Fixed loading images 2025-03-03 21:58:29 +11:00