Andrew Murray
152d982644
Test missing subfile
2025-02-17 20:20:45 +11:00
Andrew Murray
9762c9e30e
Test unexpected end of tar file
2025-02-17 20:20:02 +11:00
Andrew Murray
7f414846a3
Don't shadow builtin open
2025-02-16 05:08:22 +11:00
Hugo van Kemenade
126026e5e5
Don't shadow builtin open
2025-02-15 16:35:07 +02:00
Hugo van Kemenade
028f0d6ea9
Remove unused data read
2025-02-15 16:35:07 +02:00
Hugo van Kemenade
ff960b8841
Remove debug Image._wedge
2025-02-15 16:35:07 +02:00
Andrew Murray
9f0398ef32
Removed unused code
2025-02-15 21:07:43 +11:00
Andrew Murray
5761b4485c
Merge branch 'main' into libavif-plugin
2025-02-15 09:34:52 +11:00
Andrew Murray
0590f08f42
Handle avifDecoderCreate and avifEncoderCreate errors ( #21 )
...
* Simplify Python code by receiving tuple from C, as per #8740
* Use default PyTypeObject value
* Removed AVIF_TRUE
* Width and height are already set on first frame
* Removed memset
* Depth is set by avifRGBImageSetDefaults
* Replace PyObject with int
* After a failed pixel allocation, destroy non-first frame
* Added error if avifImageCreateEmpty returns NULL
* Python images cannot have negative dimensions
* Test invalid canvas dimensions
* Use boolean format argument
* Handle avifDecoderCreate and avifEncoderCreate errors
* tileRowsLog2 and tileColsLog2 are ignored if autotiling is enabled
* Only define _add_codec_specific_options if it may be used
* Test non-string advanced value
* Simplified error handling in AvifEncoderNew
* Corrected heading
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-02-12 15:35:03 -05:00
Andrew Murray
8f4bfe1fe5
Only crop when saving with disposal method 2 if transparency is present
2025-02-12 19:12:27 +11:00
Andrew Murray
8020d423bc
Use monkeypatch
2025-02-12 18:36:14 +11:00
Andrew Murray
7de1212c18
Merge branch 'main' into libavif-plugin
2025-02-07 11:27:43 +11:00
Andrew Murray
f4db366e41
Merge branch 'main' into px
2025-02-07 08:51:58 +11:00
Hugo van Kemenade
c73796dc1e
Merge pull request #8733 from radarhere/tuple
2025-02-06 13:19:29 +02:00
Hugo van Kemenade
a7524a34b2
Merge pull request #8727 from radarhere/getpixel
2025-02-06 13:17:26 +02:00
Andrew Murray
b19506a499
Simplify Python code by passing tuples to C
2025-02-05 19:12:50 +11:00
Andrew Murray
2810d7c6ba
Merge pull request #8721 from radarhere/justify
...
Added "justify" align for multiline text
2025-02-04 20:10:39 +11:00
Andrew Murray
00790e925d
Updated comment
2025-02-04 06:49:46 +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
ce1996d804
Use getpixel() instead of load()
2025-02-03 19:32:59 +11:00
Andrew Murray
19ba2dd6d7
Use rgb.rowBytes in overflow check ( #18 )
...
* Removed skip_unless_feature on methods when class is already skipped
* Test speed less than slowest and greater than fastest
* Updated type hints
* Only access angle when AVIF_TRANSFORM_IROT flag is present
* Added AVIF_ROOT
* Only define normalize_quantize_value if it will be used
* Build libavif after libjpeg
* Use rgb.rowBytes in overflow check
* Group EXIF info
* Removed __loaded
* If brew is not installed, use /usr prefix
* Sort AVIF codecs alphabetically
* Updated rav1e license
* Fixed catching warning, as per #8505
* Simplified code
* Fixed typos
* Test further scenarios
* Use y* to parse bytes
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-02-02 20:03:13 -05:00
Andrew Murray
6cbad27c27
Merge branch 'main' into libavif-plugin
2025-02-01 21:29:00 +11:00
Andrew Murray
5bbbc46240
Fixed exceptions when closing AppendingTiffWriter
2025-02-01 01:13:30 +11:00
Hugo van Kemenade
b03f143df1
Merge pull request #8701 from radarhere/stroke_outside
2025-01-31 13:35:22 +02:00
Andrew Murray
10eaff8ac7
Added "justify" align for multiline text
2025-01-29 20:12:45 +11:00
Andrew Murray
a9d05a1e51
Fixed unclosed file warnings ( #8705 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 22:59:44 +02:00
Andrew Murray
e19a1496c2
Use monkeypatch ( #8707 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 12:17:51 +02:00
Andrew Murray
4b29af49fd
Skip building libavif on 32-bit Windows ( #16 )
...
* Corrected comment
* Reduced difference
* Generate rotated images
* Build rav1e
* Skip building libavif on 32-bit
* Fixed building libavif on oss-fuzz
* Removed unnecessary converts
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-20 23:39:42 -05:00
Andrew Murray
8d9279dd73
Only use outside border of stroke in text()
2025-01-18 21:58:04 +11:00
Andrew Murray
ce6bf21f15
Merge branch 'main' into libavif-plugin
2025-01-18 07:52:07 +11:00
Hugo van Kemenade
4f7510b77b
Merge pull request #8689 from radarhere/get_child_images
2025-01-17 22:29:50 +02:00
Andrew Murray
be8e55d28d
Added deprecation warning
2025-01-17 18:34:23 +11:00
Hugo van Kemenade
ade99aaa90
Merge branch 'main' into gha-windows-32-bit
2025-01-16 17:01:59 +02:00
Hugo van Kemenade
df7e42eef1
Merge pull request #8681 from radarhere/types
2025-01-16 14:00:25 +02:00
Andrew Murray
4c63ea6186
Fixed series of tuples as advanced argument ( #15 )
...
* Removed check_avif_leaks.py
* Removed _VALID_AVIF_MODES
* Fixed series of tuples as advanced argument
* Do not pass advanced values to C as bytes
* Simplified code
* Reuse size
* Destroy image on failure
* Rearranged image settings
* Fixed typo
* Test roundtrip colors from premultiplied alpha
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-15 13:19:55 -05:00
Andrew Murray
cf438c53ee
Removed UnidentifiedImageError, as it inherits from OSError
2025-01-14 21:04:08 +11:00
Andrew Murray
0f2c554c69
Improved comment
2025-01-14 21:03:20 +11:00
Andrew Murray
7166a09538
Skip test_embeddable if compiler cannot be initialized
2025-01-11 18:57:41 +11:00
Hugo van Kemenade
3111e37bf4
Merge pull request #8679 from radarhere/test
2025-01-10 21:13:33 +02:00
Andrew Murray
0d93c030a5
Test passes in Python 3.13
2025-01-10 19:10:42 +11:00
Andrew Murray
4d14991604
Corrected argument types
2025-01-09 14:58:58 +11:00
Andrew Murray
a34a9cd6d1
Improved test coverage
2025-01-09 14:49:48 +11:00
Andrew Murray
f938af5c3c
Do not catch exception only to assert it is None
2025-01-09 14:38:07 +11:00
Andrew Murray
aa686894a6
Removed unused assert_all_same
2025-01-09 14:32:46 +11:00
Andrew Murray
440b09e831
Removed unused mode argument from assert_image_similar_tofile
2025-01-09 14:32:17 +11:00
Hugo van Kemenade
af3b904233
Merge pull request #8663 from radarhere/bigtiff
2025-01-08 19:15:31 +02:00
Hugo van Kemenade
e8040a7a0f
Merge pull request #8666 from radarhere/imagefile_tile
2025-01-08 19:09:33 +02:00
Hugo van Kemenade
bd4fd58ded
Merge pull request #8668 from radarhere/spider_test
2025-01-08 19:06:48 +02:00
Hugo van Kemenade
a9dcac0f31
Merge pull request #8660 from HarmvandenBrand/tiff_plugin_error_msg
2025-01-08 18:59:31 +02:00
Hugo van Kemenade
aaff3f1f3d
Merge pull request #8649 from radarhere/ico
2025-01-08 18:55:31 +02:00
Hugo van Kemenade
e9ab468277
Merge pull request #8648 from radarhere/png_text
2025-01-08 18:45:54 +02:00
Hugo van Kemenade
5654c863bf
Merge pull request #8639 from radarhere/jfif_dpi
2025-01-08 18:45:09 +02:00
Hugo van Kemenade
6bce9aa461
Merge pull request #8645 from radarhere/mozjpeg
2025-01-08 18:44:21 +02:00
Andrew Murray
f36c667467
Improved test coverage
2025-01-07 22:24:08 +11:00
Andrew Murray
aef6df2d04
Use ImageFile._Tile
2025-01-07 21:51:23 +11: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
Andrew Murray
be0283061a
Merge branch 'main' into libavif-plugin
2025-01-04 10:04:54 +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
d12e78badf
Removed exif_transpose return type checks
2025-01-03 01:00:19 +01:00
Andrew Murray
5d998d3fed
Improved coverage
2025-01-01 23:38:24 +11:00
Andrew Murray
b89cc09944
Corrected BLP1 alpha depth handling
2025-01-01 12:22:55 +11:00
Andrew Murray
beda2b6e8d
Removed unused image open
2025-01-01 10:49:24 +11:00
Andrew Murray
8d78cfcc5a
Added return types
2025-01-01 09:10:16 +11:00
Andrew Murray
d626e6ab9f
text is a property
2025-01-01 09:07:41 +11:00
Andrew Murray
ae59b03956
Do not use MozJPEG progressive default
2024-12-31 21:44:57 +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
Hugo van Kemenade
171531cb67
Merge pull request #8635 from radarhere/exif_ifd
2024-12-29 21:36:15 +02:00
Hugo van Kemenade
743256f80b
Merge pull request #8633 from radarhere/jfif_unit
2024-12-29 20:45:20 +02:00
Andrew Murray
9368a86397
Keep new IFDs when converting EXIF to bytes
2024-12-29 07:43:47 +11:00
Andrew Murray
973cd6481a
Merge branch 'main' into jpeg2000_cmyk_save
2024-12-28 22:08:08 +11:00
Hugo van Kemenade
41a89ea2dd
Merge pull request #8622 from radarhere/jpeg2000_comment
2024-12-28 13:05:26 +02:00
Andrew Murray
8945875c6c
Populate DPI from JFIF cm density
2024-12-28 21:28:44 +11:00
Andrew Murray
23083f28ab
Use monkeypatch
2024-12-28 14:02:19 +11:00
Andrew Murray
439d5cf2a0
Merge branch 'main' into jpeg2000_cmyk_save
2024-12-28 07:42:56 +11:00
Hugo van Kemenade
d008d12ba3
Merge pull request #8625 from radarhere/containerio
2024-12-27 21:51:08 +02:00
Hugo van Kemenade
cf09e8ea50
Merge pull request #8620 from radarhere/polygon
2024-12-27 21:47:49 +02:00
Hugo van Kemenade
4df23c0f26
Merge pull request #8535 from radarhere/tiff
2024-12-27 21:40:12 +02:00
Hugo van Kemenade
dcd0479772
Merge pull request #8499 from radarhere/stub
2024-12-27 21:31:11 +02: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
89f1498796
Updated argument types to match Image draft
2024-12-27 11:38:47 +11:00
Andrew Murray
0148684c24
Use monkeypatch
2024-12-27 11:29:47 +11:00
Andrew Murray
aef3aa2ab3
Pass file handle to ContainerIO
2024-12-27 11:26:07 +11:00
Andrew Murray
dd410e4b32
Added reading of J2K comments
2024-12-26 10:51:45 +11:00
Andrew Murray
3a9a3ab9cc
Reduced epsilons ( #13 )
...
* Derive dir from filename
* Reduced epsilons
* Simplified code
* Do not shadow builtin
* Test saving EXIF instance without orientation
* More closely match wheels-dependencies
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-24 00:12:36 -05:00
Andrew Murray
fb3d80e390
Fixed connecting discontiguous corners
2024-12-24 00:41:27 +11:00
Andrew Murray
601a56def1
Assert palette is not None
2024-12-23 12:03:13 +11:00
Andrew Murray
5d5543b35c
Assert that load() does not return None
2024-12-23 11:57:27 +11:00
Andrew Murray
0074c3bf34
Assert that a tuple is returned by getpixel()
2024-12-23 11:45:36 +11:00
Andrew Murray
08e1f9ebc1
Lint fixes
2024-12-21 13:06:09 +11:00
Andrew Murray
cbc55c4621
Raise ValueError when WMF inch is zero ( #8600 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-18 08:08:51 +02:00
Andrew Murray
9b6e575fd6
Merge branch 'main' into libavif-plugin
2024-12-18 11:32:30 +11:00
Andrew Murray
0ca832cfa5
Merge branch 'main' into xmp
2024-12-17 18:43:00 +11:00
Hugo van Kemenade
e40033dfc4
Merge pull request #8494 from radarhere/gif_palette
...
Improved handling of RGBA palettes when saving GIF images
2024-12-16 15:10:17 +02:00
Andrew Murray
4eaa6b71ef
Merge branch 'main' into libavif-plugin
2024-12-15 08:15:57 +11:00
Andrew Murray
01bc487ff4
Merge branch 'main' into zlib-ng
2024-12-14 19:06:00 +11:00
Andrew Murray
a56acd86c4
Removed unittest mock ( #10 )
...
* Removed unittest mock
* Updated license
* Increased timeout
---------
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-13 10:44:38 -05:00
Andrew Murray
522505b714
Support saving CMYK JPEG2000 images
2024-12-10 18:33:12 +11:00