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
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Benjamin Gilbert
4b422db243
Add keep_rgb option to prevent RGB -> YCbCr conversion during JPEG write
...
libjpeg automatically converts RGB to YCbCr by default. Add a keep_rgb
option to disable libjpeg's automatic conversion of RGB images during
write.
2023-12-13 18:26:35 -06:00
Hugo van Kemenade
27d7bd10c8
Use list comprehensions to create transformed lists
2023-12-03 21:59:44 +02:00
Hugo van Kemenade
76446ee450
Merge pull request #7524 from cclauss/ruff-rules-C4-PERF102-PIE810-PLR
2023-12-01 17:09:25 +02:00
Christian Clauss
fd59f91d17
ruff: Minor optimizations of list comprehensions, x in set, etc.
2023-11-06 19:13:47 +06:00
Benjamin Gilbert
e572722479
Allow configuring JPEG restart marker interval on save
...
libjpeg allows specifying the marker interval either in MCU blocks or in
MCU rows. Support both, via separate parameters, rather than requiring
callers to do the math.
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-10-31 17:47:25 -05:00
Andrew Murray
e10a58ccce
Concatenate multiple EXIF markers
2023-10-26 21:46:38 +11:00
Andrew Murray
8b71f3d3c1
Added messages to errors
2023-10-19 18:42:41 +11:00
Andrew Murray
7319d86328
Catch struct.error from truncated EXIF when reading DPI
2023-10-12 10:13:46 +11:00
Andrew Murray
f24222a954
Merge branch 'main' into jpeg_xmp
2023-10-06 17:23:53 +11:00
Andrew Murray
0a28840bc4
Expand buffer size when optimizing or progressive
2023-08-19 14:34:08 +10:00
Andrew Murray
a04ba81e22
bufsize is already increased to MAXBLOCK in ImageFile._save()
2023-08-19 12:37:00 +10:00
Andrew Murray
9979a822c7
Changed Image mode property to be read-only by default
2023-07-29 09:28:18 +10:00
Andrew Murray
2488167f33
Allow for zero-byte padding at end of XMP data
2023-07-10 22:00:30 +10:00