Hugo van Kemenade
c47b8badb3
Assert image type ( #8845 )
2025-10-10 16:43:14 +03:00
Andrew Murray
ce8d05484b
Use naturally created image
2025-09-21 07:44:47 +10:00
Andrew Murray
9ba1029d51
Clear C image when MPO frame image size changes
2025-09-21 07:44:47 +10:00
Hugo van Kemenade
c22230b761
Use save parameters as encoderinfo defaults ( #9001 )
2025-06-30 15:13:12 +03:00
Andrew Murray
d4162f8505
Updated return type
2025-06-30 18:27:49 +10:00
Andrew Murray
a0a1ff14c4
Merge branch 'main' into encoderinfo_frames
2025-06-28 01:35:59 +10:00
Andrew Murray
646b4a4ecd
Merge branch 'main' into mpo
2025-06-28 01:20:15 +10:00
Andrew Murray
41129ce1cb
Use list
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-28 01:20:02 +10:00
Hugo van Kemenade
3a66b1d291
Restore original encoderinfo after saving ( #8942 )
2025-06-27 18:04:43 +03:00
Andrew Murray
0bb99e5561
Use save parameters as encoderinfo defaults
2025-06-07 15:08:16 +10:00
Andrew Murray
33460d2f82
Assert _getmp() does not return None
2025-06-07 11:09:38 +10:00
Andrew Murray
bcc6e42bf8
Fixed saving MPO with more than one appended image
2025-05-27 21:08:58 +10:00
Andrew Murray
0e292a80c8
Restore original encoderinfo after saving
2025-05-03 00:52:35 +10:00
Andrew Murray
f4cd5e7502
Assert image type
2025-04-03 18:44:45 +11:00
Andrew Murray
14fb62e36c
Assert image type ( #8619 )
2025-03-30 10:42:46 +03:00
Andrew Murray
dc94d1d8bb
Test opening file with plugin directly
2025-02-19 18:27:05 +11:00
Hugo van Kemenade
1e574e6f8b
Replace slice and comparison with startswith
2025-02-17 23:39:33 +02:00
Andrew Murray
7f414846a3
Don't shadow builtin open
2025-02-16 05:08:22 +11:00
Andrew Murray
0ca832cfa5
Merge branch 'main' into xmp
2024-12-17 18:43:00 +11:00
Andrew Murray
413bbb31c9
Fixed catching warnings
2024-10-26 16:15:46 +11:00
Andrew Murray
203ca12626
Allow encoderinfo to be set for appended images
2024-10-18 19:09:22 +11:00
Andrew Murray
38458a204c
Corrected type hints
2024-07-20 19:07:42 +10:00
Andrew Murray
8a05e32336
Added type hints
2024-07-08 20:09:45 +10:00
Andrew Murray
b15ce5a4bc
Do not detect Ultra HDR images as MPO
2024-05-13 21:51:16 +10:00
Andrew Murray
a78ed9595f
Determine size from markers, not EXIF data
2024-03-16 18:40:16 +11:00
Andrew Murray
6d78d42769
Added type hints
2024-03-02 13:12:17 +11:00
Andrew Murray
bb1fece57a
Added type hints
2024-01-31 21:55:32 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests ( #7756 )
...
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Hugo van Kemenade
53c3cd9f8e
isort Tests
2024-01-20 13:23:03 +02:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Andrew Murray
9ed8ca1494
Removed "del im"
2023-03-03 10:28:36 +02:00
Aarni Koskela
43128ce716
Fix up pytest.warns lambda: uses
2023-02-23 16:06:40 +02:00
Hugo van Kemenade
8d5eb71d26
Use enumerate
2023-01-08 13:47:46 +02:00
Andrew Murray
9898613c4d
Fixed saving EXIF data to MPO
2022-12-22 15:31:36 +11:00
Andrew Murray
af317a696d
Added MP Format Version when saving
2022-11-13 08:00:20 +11:00
Andrew Murray
0ed03d4a58
Parametrize tests
2022-08-23 21:41:32 +10:00
Andrew Murray
2944ff18d6
Support saving multiple MPO frames
2022-07-16 20:02:58 +10:00
Andrew Murray
b1885779a9
Once exif data is parsed, do not reload unless it changes
2022-05-27 07:54:54 +10:00
Andrew Murray
e62449f94c
Added DeferredError to _fp
2022-04-17 12:14:53 +10:00
Hugo van Kemenade
d3c9a6504e
Variable in function should be snake_case
2022-04-10 23:55:16 +03:00
Andrew Murray
573cf278f1
Reset size when seeking away from "Large Thumbnail" MPO frame
2022-03-01 19:10:10 +11:00
Andrew Murray
dae1f691c2
Updated checks that no warnings were raised
2022-02-21 13:49:01 +11:00
Hugo van Kemenade
95986f38da
Merge pull request #5168 from radarhere/mpo
2021-03-07 11:38:36 +02:00
Andrew Murray
4a0569e97f
Changed zero length assertions to falsy
2021-02-11 13:48:31 +11:00
Andrew Murray
01be700081
Fixed asserting that no warnings were raised
2021-02-10 23:37:55 +11:00
Andrew Murray
db3b5108dc
Changed MP Type to match #1631 image
2021-01-01 13:00:01 +11:00
Andrew Murray
6175389186
Only read different sizes for "Large Thumbnail" frames
2021-01-01 12:45:02 +11:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Jon Dufresne
4f185329f4
Streamline test skipping based on supported features
...
This adds a new test decorator: skip_unless_feature(). The argument is
the same as passed to features.check(). If the feature is not supported,
the test will be skipped.
This removes several kinds of boilerplate copied and pasted around tests
so test feature checking is handled and displayed more consistently.
Refs #4193
2020-02-18 13:07:01 -08:00
Hugo
affade7595
Replace unittest with pytest
2020-02-13 12:15:05 +02:00