Commit Graph

179 Commits

Author SHA1 Message Date
Andrew Murray
751029e770 Assert fp is not None 2025-04-03 18:42:49 +11:00
Andrew Murray
1103e82d17 Include filename in state 2025-04-02 11:14:58 +11:00
Andrew Murray
4236b583a1 Do not import TYPE_CHECKING 2025-03-30 22:16:16 +11:00
Hugo van Kemenade
e4cac21044 Don't use start=0 in range() 2025-03-03 23:57:40 +02:00
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
Andrew Murray
b19506a499 Simplify Python code by passing tuples to C 2025-02-05 19:12:50 +11: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
Andrew Murray
8945875c6c Populate DPI from JFIF cm density 2024-12-28 21:28:44 +11:00
Hugo van Kemenade
f42d1c1b04
Merge pull request #8483 from radarhere/xmp 2024-12-27 21:30:54 +02:00
Hugo van Kemenade
510c84ad03
Merge pull request #8476 from radarhere/jpeg_state 2024-12-27 21:29:17 +02:00
Andrew Murray
0ca832cfa5
Merge branch 'main' into xmp 2024-12-17 18:43:00 +11:00
Hugo van Kemenade
0ab21dff1e Fix new Ruff errors 2024-12-02 20:29:38 +02:00
Andrew Murray
98f975dbbe Do not save XMP from info 2024-10-18 18:56:23 +11:00
Andrew Murray
0beb2228f9 Include JpegImageFile layers in state 2024-10-17 12:44:25 +11:00
Hugo van Kemenade
8aa1e9209b
Merge pull request #8336 from radarhere/type_hint_imagefile 2024-09-04 14:56:23 +03:00
Hugo van Kemenade
95c867dabf
Merge pull request #8286 from radarhere/xmp 2024-09-04 14:50:15 +03:00
Andrew Murray
be34a7da4b Save xmp from info 2024-09-04 19:20:56 +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
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
c056406f21 Added comments to explain overhead_len 2024-08-06 06:19:15 +10:00
Andrew Murray
d49884e40c Raise ValueError is XMP data is too long 2024-08-05 21:48:36 +10:00
Andrew Murray
2722cfd72b Added writing XMP bytes to JPEG 2024-08-05 20:20:24 +10:00
Andrew Murray
e6fd8359d3 Deprecate huffman_ac and huffman_dc 2024-08-01 12:27:45 +10:00
Andrew Murray
accfaf1c09 Added type hints 2024-07-30 20:20:09 +10:00
Andrew Murray
38458a204c Corrected type hints 2024-07-20 19:07:42 +10:00
Andrew Murray
01529d8b09 Added type hints 2024-07-15 19:23:36 +10:00
Andrew Murray
5bae934317 Added type hints 2024-07-12 21:16:56 +10:00
Andrew Murray
8a05e32336 Added type hints 2024-07-08 20:09:45 +10:00
Andrew Murray
70b3815a37
Merge pull request #8127 from radarhere/multiple_exif_markers
Fixed processing multiple JPEG EXIF markers
2024-06-28 18:50:19 +10:00
Andrew Murray
88cd6d41ef
Rearranged comments
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-06-28 17:28:42 +10:00
Andrew Murray
fd3f6c1a92 Remove zero-byte end padding when parsing any XMP data 2024-06-26 19:31:40 +10:00
Hugo van Kemenade
6e1831cf99
Merge pull request #8056 from radarhere/hdr
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-06-26 11:33:50 +03:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
7ab3aee7bc
Merge branch 'main' into xmp 2024-06-19 09:06:10 +10:00
Andrew Murray
b84c970fbf Wait until all markers are read to process EXIF 2024-06-10 19:19:06 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
5bacce9dc2
Merge pull request #8046 from srittau/type-annotations
Add various type annotations
2024-06-08 18:38:21 +10:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp 2024-06-05 15:53:46 +10:00
Andrew Murray
d566c04d5b Updated type hints 2024-06-03 14:20:01 +10:00
Andrew Murray
05402f0e30
Merge branch 'main' into hdr 2024-05-22 07:42:23 +10:00
Andrew Murray
0f1a0fc501 Improved consistency of XMP handling 2024-05-20 23:11:50 +10:00
Andrew Murray
8a3a72e51d Added type hints 2024-05-18 16:06:50 +10:00
Andrew Murray
e419fd7ab4 Added type hints 2024-05-15 20:19:09 +10:00
Andrew Murray
b15ce5a4bc Do not detect Ultra HDR images as MPO 2024-05-13 21:51:16 +10:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Andrew Murray
2250fbeb9a Added type hints 2024-04-29 20:25:11 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Andrew Murray
d93a5ad70b
Merge pull request #7553 from bgilbert/jpeg-rgb
Add `keep_rgb` option when saving JPEG to prevent conversion of RGB colorspace
2024-01-01 23:55:37 +11:00
Hugo van Kemenade
6c4b47dc46
Merge pull request #7496 from radarhere/exif 2023-12-31 17:39:21 +02:00