Commit Graph

384 Commits

Author SHA1 Message Date
Enric Pou
6fd5c3213a
Merge f86f11c843 into 2d23257595 2025-10-17 15:41:59 +01:00
Andrew Murray
c874256132 Support saving variable length rational TIFF tags by default 2025-10-12 07:08:52 +11:00
Hugo van Kemenade
2ab301dcc9
Drop support for Python 3.9 (#9119)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-08-02 12:02:20 +00:00
Andrew Murray
9c9449af34 Removed support for LibTIFF < 4 2025-07-02 00:00:16 +10:00
Andrew Murray
a0a1ff14c4 Merge branch 'main' into encoderinfo_frames 2025-06-28 01:35:59 +10:00
Andrew Murray
925fe51904 Support saving I;16L images 2025-06-14 12:22:48 +10:00
Andrew Murray
4ba97d1327 Removed entries for non-existent modes 2025-06-14 12:22:48 +10:00
Hugo van Kemenade
de053fbae0
Handle XMP data from an UNDEFINED TIFF tag (#8997) 2025-06-10 14:57:15 +03:00
Andrew Murray
0bb99e5561 Use save parameters as encoderinfo defaults 2025-06-07 15:08:16 +10:00
Andrew Murray
cb077a16c8 Handle UNDEFINED XMP data 2025-06-04 20:07:13 +10:00
Enric Pou
ee26eb8608
Add __float__ typing
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-28 08:27:41 +02:00
Enric Pou
025f3ba23a Using math.info to treat 0 denominators for IFDRational 2025-05-26 09:19:25 +02:00
Andrew Murray
041acf1344 Clear core image if memory mapping was used for last load 2025-05-25 15:00:47 +10:00
Enric Pou
c1f0c23b47 Mypy fix: Cast v.numerator to float 2025-05-22 08:57:41 +02:00
Enric Pou
3ac0420d6c Fix: Set tag type accordingly if IFDRational with 0 denominator 2025-05-21 15:23:35 +02:00
Andrew Murray
4236b583a1 Do not import TYPE_CHECKING 2025-03-30 22:16:16 +11:00
Andrew Murray
03dc994baa
Check that _fp type is not DeferredError before use (#8640) 2025-03-29 18:30:30 +02:00
Andrew Murray
841ba163fd If every tile covers the image, only use the last offset 2025-03-18 00:21:08 +11: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
Hugo van Kemenade
a2b13cc02a Call startswith/endswith once with a tuple 2025-03-03 23:57:40 +02:00
Andrew Murray
d6272297fc Ignore override 2025-03-03 14:48:00 +11:00
Andrew Murray
5c93145061 Allow encoderconfig and encoderinfo to be set for appended TIFF images 2025-02-28 22:16:52 +11:00
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
pre-commit-ci[bot]
955d678ca2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-03 17:36:01 +00:00
Hugo van Kemenade
bff83cff59
Merge pull request #8568 from radarhere/fixifd 2025-01-16 16:33:42 +02:00
Andrew Murray
c67ed4678b
Moved strings inside debug statement
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-01-16 23:48:44 +11:00
Hugo van Kemenade
af3b904233
Merge pull request #8663 from radarhere/bigtiff 2025-01-08 19:15:31 +02:00
Hugo van Kemenade
a9dcac0f31
Merge pull request #8660 from HarmvandenBrand/tiff_plugin_error_msg 2025-01-08 18:59:31 +02:00
Andrew Murray
a8381c619d Allow upgrading LONG to LONG8 2025-01-07 21:51:00 +11:00
Andrew Murray
618339e2d2 Allow saving multiple frames as BigTIFF 2025-01-07 21:51:00 +11:00
Harm.van.den.brand@alliander.com
036db2da87 OSError caused by decode error should use string argument to be in line with rest of module 2025-01-03 12:50:19 +01:00
Andrew Murray
8d78cfcc5a Added return types 2025-01-01 09:10:16 +11:00
Andrew Murray
8bdcadcbe9 Renamed argument to big_tiff 2024-12-31 10:16:00 +11:00
Andrew Murray
2ac383028a Allow saving as BigTIFF 2024-12-31 01:26:13 +11:00
Andrew Murray
7cee64ad1b Use endswith 2024-12-30 19:45:46 +11:00
Andrew Murray
167ed55d8b Use elif 2024-12-30 19:37:38 +11:00
Hugo van Kemenade
4df23c0f26
Merge pull request #8535 from radarhere/tiff 2024-12-27 21:40:12 +02:00
Hugo van Kemenade
99ee337e07
Merge pull request #8529 from radarhere/tiff_tags 2024-12-27 21:35:02 +02:00
Andrew Murray
c16ae6fefa Do not describe raw data as a table 2024-12-03 09:19:26 +11:00
Hugo van Kemenade
0ab21dff1e Fix new Ruff errors 2024-12-02 20:29:38 +02:00
Andrew Murray
7dcf4d8ab3 Added logging to fixIFD() 2024-11-25 19:41:41 +11:00
Tom Flanagan
82dfbc35b1
Update src/PIL/TiffImagePlugin.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-20 05:21:14 -08:00
Tom Flanagan
c7a9582eab Fix file position desync when calling into libtiff 2024-11-19 21:49:33 -08:00
Andrew Murray
3cdaee45f5 Raise UnidentifiedImageError when opening TIFF without dimensions 2024-11-05 21:20:20 +11:00
Andrew Murray
37679c8673 Pass IFDs to libtiff as TIFF_LONG8 2024-11-04 20:55:00 +11:00
Andrew Murray
4611a24661 Fix IFDRational with a zero denominator 2024-10-17 10:58:48 +11:00
Andrew Murray
5ff20273d9 Updated type hints 2024-10-17 10:46:26 +11:00
Hugo van Kemenade
686b5e2cb4
Merge pull request #8392 from radarhere/tiff_seek
Do not create core image in TIFF seek()
2024-10-12 11:46:36 +03:00
Hugo van Kemenade
fd74857bcf
Merge pull request #8417 from radarhere/appendingTiffWriter
Support writing LONG8 offsets in AppendingTiffWriter
2024-10-12 11:29:09 +03:00
Andrew Murray
00c5989d4e Use MAXBLOCK 2024-10-12 13:44:48 +11:00