Commit Graph

362 Commits

Author SHA1 Message Date
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
Andrew Murray
7edf952832 Do not close provided file handles with libtiff 2024-10-11 19:37:56 +11:00
Andrew Murray
a9b9a63614 Do not create core image in seek(), when load() might not run 2024-10-08 20:48:32 +11:00
Andrew Murray
24e9961c4f Support writing LONG8 offsets 2024-09-25 18:45:16 +10:00
Andrew Murray
0a99d63028 Use field size in AppendingTiffWriter 2024-09-25 18:39:39 +10:00
Yay295
362ffaf9b7 implement tiff exif multistrip support 2024-09-18 14:50:11 -05:00
Andrew Murray
629f5be52e In seek(), create core image at size needed for loading 2024-09-18 22:56:29 +10:00
Andrew Murray
a92dca66bd Use raw size for striped tiles 2024-09-18 21:22:59 +10:00
Andrew Murray
a859695d9a
Rearranged code
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2024-09-18 21:17:49 +10:00
Andrew Murray
f1e86965f6 Use transposed size after opening for TIFF images 2024-09-18 20:26:06 +10:00
Hugo van Kemenade
f30eefaae2
Merge pull request #8354 from radarhere/type_hint 2024-09-08 16:19:08 +03:00
Andrew Murray
8b3ef3784b Moved Buffer into _typing 2024-09-08 08:30:30 +10:00
Andrew Murray
93a0bf0276 Added type hints to TiffImagePlugin _save 2024-09-06 21:33:30 +10:00
Andrew Murray
94315f87c3 Removed unused IFD_LEGACY_API 2024-09-06 19:13:35 +10:00
Hugo van Kemenade
eaeda4a6be
Merge pull request #8339 from radarhere/type_hint 2024-09-04 14:57:01 +03:00
Andrew Murray
e47b181084 Added type hints 2024-08-31 18:48:16 +10:00
Andrew Murray
8699f13a74 Require fp parameter 2024-08-30 22:28:13 +10:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Andrew Murray
4721c31b19
Merge pull request #8319 from radarhere/type_hint
Added type hints
2024-08-24 23:54:19 +10:00
Andrew Murray
f0d8fd3059
Merge pull request #8310 from Yay295/tiff_cleanup
Move repeated code to private helper function
2024-08-21 13:48:18 +10:00
Andrew Murray
e6e5ef5c5f Added type hints 2024-08-21 08:05:02 +10:00
Yay295
cd76b48533 move repeated code to private helper function 2024-08-18 17:02:45 -05:00
Andrew Murray
617699ffc7 Log value from tag_v2 2024-08-16 12:03:02 +10:00