Commit Graph

280 Commits

Author SHA1 Message Date
Hugo van Kemenade
da13358245
Merge pull request #7883 from radarhere/tiff
Raise ValueError if seeking to greater than offset-sized integer in TIFF
2024-04-01 08:46:05 +03:00
Andrew Murray
3004c46683 Block saving TIFF tag OSUBFILETYPE using libtiff 2024-03-22 23:43:55 +11:00
Andrew Murray
21801f3a45 Raise ValueError if seeking to greater than offset-sized integer 2024-03-16 13:33:04 +11:00
Andrew Murray
904b8e549c Allow writing IFDRational to UNDEFINED tag 2024-02-28 21:07:15 +11:00
Andrew Murray
d02a778efd
Removed no cover pragmas
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:57:59 +11:00
Andrew Murray
19a6edeecc Added type hints 2024-02-10 19:50:45 +11:00
Andrew Murray
99760f4c59
Merge branch 'main' into tiff 2024-01-01 13:41:17 +11:00
Andrew Murray
f7ec665bf1 Support setting ROWSPERSTRIP tag 2023-12-29 23:00:14 +11:00
Andrew Murray
f6bcf4e1ae Use IMAGEWIDTH and IMAGELENGTH when calculating strip size 2023-12-29 14:15:40 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Aarni Koskela
0c705692ea Remove old commented-out code 2023-11-06 21:21:07 +02:00
Andrew Murray
7394e5083d
Merge branch 'main' into tiff 2023-10-06 11:40:05 +11:00
Hugo van Kemenade
507b7d519a Fix LOG011 avoid pre-formatting log messages 2023-09-25 16:45:38 +03:00
Andrew Murray
616ed35e74 Support reading 8-bit YCbCr TIFF images 2023-09-21 20:53:23 +10:00
Andrew Murray
1217b13b9e Handle tag_v2 in TiffImagePlugin 2023-09-11 19:02:17 +10:00
Andrew Murray
ea953c0514 When TIFF applies orientation on load, delete tag from getexif() 2023-09-08 15:05:36 +10:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Hugo van Kemenade
0ac3677b56
Merge pull request #7199 from radarhere/tiff_close 2023-06-30 09:27:26 +03:00
Andrew Murray
8bbd4ada9b Merge branch 'main' into exif_transpose 2023-06-14 09:57:25 +10:00
Hugo van Kemenade
ae921956ba
Merge pull request #7078 from radarhere/long8 2023-06-13 19:48:55 +03:00
Andrew Murray
e45da2ae17 Do not close provided file handles with libtiff 2023-06-05 11:07:09 +10:00
Andrew Murray
a4986ba986 Support reading signed 8-bit TIFF images 2023-05-04 07:54:30 +10:00
Andrew Murray
fe8599c5d6 Use ExifTags 2023-04-16 14:04:39 +10:00
Andrew Murray
dd15f15d08 Added further field sizes 2023-04-10 09:06:20 +10:00
Andrew Murray
5080d35816 Allow libtiff_support_custom_tags to be missing 2023-03-17 11:27:58 +11:00
Andrew Murray
6932562974 Added __int__ to IFDRational for Python >= 3.11 2023-03-09 22:21:37 +11:00
Frédéric Carron
2299490082 Close the file pointer copy (_fp) in the libtiff encoder if it is still open. 2023-03-03 11:41:37 +01:00
Andrew Murray
fcc59a4001 Use existing variable names from ImageFile 2023-02-25 16:31:26 +02:00
Aarni Koskela
8e18415cc5 Clarify variable names in TiffImagePlugin
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:09:14 +02:00
Andrew Murray
ad0e9dbaaf Fixed writing int as UNDEFINED tag 2023-02-14 10:52:32 +11:00
pre-commit-ci[bot]
24183d652e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Andrew Murray
e48aead015 Allow writing IFDRational to BYTE tag 2023-01-13 21:02:42 +11:00
Hugo van Kemenade
2df4865e42 Use 'key in mydict' instead of 'key in mydict.keys()' 2023-01-08 13:47:46 +02:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Hugo van Kemenade
1ba19b1105
Merge pull request #6800 from radarhere/int_ascii
Resolves https://github.com/python-pillow/Pillow/issues/6799
2022-12-29 23:36:33 +02:00
Andrew Murray
6da4169f37 Fixed writing int as ASCII tag 2022-12-13 22:40:55 +11:00
Andrew Murray
c2a42655e1 Allow get_child_images to access JPEG thumbnails 2022-12-06 19:30:53 +11:00
Andrew Murray
70cc8a5741 Fixed writing int as BYTE tag 2022-11-15 09:06:41 +11:00
Hugo van Kemenade
799a6a0105 Fix linting 2022-10-29 12:06:30 +03:00
Eric Soroos
13f2c5ae14 Prevent DOS with large SAMPLESPERPIXEL in Tiff IFD
A large value in the SAMPLESPERPIXEL tag could lead to a memory and
runtime DOS in TiffImagePlugin.py when setting up the context for
image decoding.
2022-10-29 12:06:18 +03:00
Andrew Murray
0fd110864a Changed mode to I;16 2022-10-05 21:15:45 +11:00
Jay-Jay Aslan
802a1430fe
added support for 16 bit integer tiffs 2022-10-05 11:03:51 +02:00
Andrew Murray
beb7b4d0f6 Added reading of TIFF child images 2022-09-10 22:50:54 +10:00
Hugo van Kemenade
7158816bc8
Merge pull request #6552 from radarhere/constants 2022-08-31 18:06:00 +03:00
Andrew Murray
b3dcf17886 Use constants 2022-08-31 20:09:05 +10:00
Andrew Murray
3459120732 Fixed writing bytes as ASCII tag 2022-08-11 20:46:58 +10:00
Andrew Murray
2b14d83549 Added strip_size as TIFF encoder argument 2022-08-01 21:41:17 +10:00
Hugo van Kemenade
55d3c07e1d
Merge pull request #6232 from radarhere/colormap 2022-06-01 23:12:13 +03:00
Andrew Murray
b1885779a9 Once exif data is parsed, do not reload unless it changes 2022-05-27 07:54:54 +10:00
Hugo van Kemenade
33f00c9ca8
Merge pull request #6231 from radarhere/bmp_compression
Ignore compression value from BMP info dictionary when saving as TIFF
2022-05-20 16:18:15 +03:00