imageio 2.34.0__tar.gz → 2.34.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {imageio-2.34.0/imageio.egg-info → imageio-2.34.2}/PKG-INFO +1 -1
- {imageio-2.34.0 → imageio-2.34.2}/docs/development/index.rst +2 -2
- {imageio-2.34.0 → imageio-2.34.2}/docs/formats/index.rst +1 -1
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/freezing.rst +1 -1
- {imageio-2.34.0 → imageio-2.34.2}/imageio/__init__.py +1 -1
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/request.py +3 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/util.py +2 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/_dicom.py +11 -2
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/pillow_legacy.py +1 -3
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/pyav.py +1 -1
- {imageio-2.34.0 → imageio-2.34.2/imageio.egg-info}/PKG-INFO +1 -1
- {imageio-2.34.0 → imageio-2.34.2}/tests/conftest.py +12 -14
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_dicom.py +12 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_ffmpeg.py +5 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_ffmpeg_info.py +7 -1
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_freeimage.py +4 -1
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_pillow.py +10 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_pyav.py +2 -2
- {imageio-2.34.0 → imageio-2.34.2}/CONTRIBUTORS.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/LICENSE +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/MANIFEST.in +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/README.md +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/Makefile +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/_static/imageio_logo.png +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/_templates/better_class.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/_templates/formats.rst.template +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/_templates/plugin.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/conf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/development/plugins.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/examples.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/formats/formats_by_plugin.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/formats/video_formats.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/imageio_ext.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/index.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/make.bat +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/reference/core_v3.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/reference/index.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/reference/userapi.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/cmdlinescripts.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/drop27.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/envvariables.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/index.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/installation.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/overview.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/requests.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/scipy.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/docs/user_guide/standardimages.rst +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/__main__.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/config/__init__.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/config/extensions.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/config/extensions.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/config/plugins.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/config/plugins.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/__init__.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/fetching.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/findlib.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/format.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/format.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/imopen.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/imopen.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/legacy_plugin_wrapper.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/legacy_plugin_wrapper.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/request.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/core/v3_plugin_api.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/freeze.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/__init__.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/_bsdf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/_freeimage.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/_swf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/_tifffile.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/bsdf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/dicom.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/example.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/feisem.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/ffmpeg.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/fits.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/freeimage.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/freeimagemulti.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/gdal.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/grab.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/lytro.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/npz.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/opencv.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/pillow.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/pillow_info.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/pillowmulti.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/simpleitk.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/spe.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/swf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/tifffile.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/plugins/tifffile_v3.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/py.typed +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/testing.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/typing.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/v2.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/v2.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/v3.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio/v3.pyi +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/SOURCES.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/dependency_links.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/entry_points.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/not-zip-safe +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/requires.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/imageio.egg-info/top_level.txt +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/setup.cfg +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/setup.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_bsdf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_config.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_core.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_fei_tiff.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_fits.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_format.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_gdal.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_grab.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_legacy_plugin_wrapper.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_lytro.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_meta.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_npz.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_opencv.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_pillow_legacy.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_simpleitk.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_spe.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_swf.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_tifffile.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_tifffile_v3.py +0 -0
- {imageio-2.34.0 → imageio-2.34.2}/tests/test_v2.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imageio
|
|
3
|
-
Version: 2.34.
|
|
3
|
+
Version: 2.34.2
|
|
4
4
|
Summary: Library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
|
|
5
5
|
Home-page: https://github.com/imageio/imageio
|
|
6
6
|
Download-URL: http://pypi.python.org/pypi/imageio
|
|
@@ -304,7 +304,7 @@ class to API calls using the plugin kwarg. For example::
|
|
|
304
304
|
|
|
305
305
|
**Installation**
|
|
306
306
|
|
|
307
|
-
To develop a new plugin, you can start off with a simple
|
|
307
|
+
To develop a new plugin, you can start off with a simple dev install::
|
|
308
308
|
|
|
309
309
|
# 1. Fork the ImageIO repository
|
|
310
310
|
|
|
@@ -449,7 +449,7 @@ the file, define functions that have their name begin with ``test_`` (example:
|
|
|
449
449
|
``def test_png_reading():``) and fill them with code that uses your plugin.
|
|
450
450
|
|
|
451
451
|
Our main requirement for tests of new plugins is that they cover the full
|
|
452
|
-
plugin. Ideally, they also test
|
|
452
|
+
plugin. Ideally, they also test reading and writing of all supported formats,
|
|
453
453
|
but this is not strictly necessary. Check the commands above for how to run
|
|
454
454
|
tests and check test coverage of your plugin.
|
|
455
455
|
|
|
@@ -6,7 +6,7 @@ Supported Formats
|
|
|
6
6
|
you can search this page using ``Ctrl+F`` and then type the name of
|
|
7
7
|
the extension or format.
|
|
8
8
|
|
|
9
|
-
ImageIO reads and writes images by
|
|
9
|
+
ImageIO reads and writes images by delegating your request to one of many
|
|
10
10
|
backends. Example backends are pillow, ffmpeg, tifffile among others. Each
|
|
11
11
|
backend supports its own set of formats, which is how ImageIO manages to support
|
|
12
12
|
so many of them.
|
|
@@ -12,7 +12,7 @@ because plugins are lazy-loaded upon first use for better platform support and
|
|
|
12
12
|
reduced loading times. This lazy-loading is an interesting case as (1) these
|
|
13
13
|
plugins are exactly the kind of thing that PyInstaller_ tries desperately to
|
|
14
14
|
avoid collecting to minimize package size and (2) these plugins are - by
|
|
15
|
-
|
|
15
|
+
themselves - super lightweight and won't bloat the package.
|
|
16
16
|
|
|
17
17
|
To add plugins to the application your first option is to add all of imageio to
|
|
18
18
|
your package, which will also include the plugins. This can be done by using a
|
|
@@ -531,7 +531,7 @@ class SimpleDicomReader(object):
|
|
|
531
531
|
data = data.astype(np.float32)
|
|
532
532
|
else:
|
|
533
533
|
# Determine required range
|
|
534
|
-
minReq, maxReq = data.min(), data.max()
|
|
534
|
+
minReq, maxReq = data.min().item(), data.max().item()
|
|
535
535
|
minReq = min([minReq, minReq * slope + offset, maxReq * slope + offset])
|
|
536
536
|
maxReq = max([maxReq, minReq * slope + offset, maxReq * slope + offset])
|
|
537
537
|
|
|
@@ -703,7 +703,16 @@ class DicomSeries(object):
|
|
|
703
703
|
self._entries.append(dcm)
|
|
704
704
|
|
|
705
705
|
def _sort(self):
|
|
706
|
-
self._entries.sort(
|
|
706
|
+
self._entries.sort(
|
|
707
|
+
key=lambda k: (
|
|
708
|
+
k.InstanceNumber,
|
|
709
|
+
(
|
|
710
|
+
k.ImagePositionPatient[2]
|
|
711
|
+
if hasattr(k, "ImagePositionPatient")
|
|
712
|
+
else None
|
|
713
|
+
),
|
|
714
|
+
)
|
|
715
|
+
)
|
|
707
716
|
|
|
708
717
|
def _finish(self):
|
|
709
718
|
"""
|
|
@@ -137,10 +137,8 @@ loop : int
|
|
|
137
137
|
The number of iterations. Default 0 (meaning loop indefinitely).
|
|
138
138
|
duration : {float, list}
|
|
139
139
|
(Only available in GIF-PIL)
|
|
140
|
-
The duration (in
|
|
140
|
+
The duration (in milliseconds) of each frame. Either specify one value
|
|
141
141
|
that is used for all frames, or one value for each frame.
|
|
142
|
-
Note that in the GIF format the duration/delay is expressed in
|
|
143
|
-
hundredths of a second, which limits the precision of the duration.
|
|
144
142
|
fps : float
|
|
145
143
|
(Only available in GIF-PIL)
|
|
146
144
|
The number of frames per second. If duration is not given, the
|
|
@@ -808,7 +808,7 @@ class PyAVPlugin(PluginV3):
|
|
|
808
808
|
Parameters
|
|
809
809
|
----------
|
|
810
810
|
codec : str
|
|
811
|
-
The codec to use, e.g. ``"
|
|
811
|
+
The codec to use, e.g. ``"libx264"`` or ``"vp9"``.
|
|
812
812
|
fps : float
|
|
813
813
|
The desired framerate of the video stream (frames per second).
|
|
814
814
|
pixel_format : str
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imageio
|
|
3
|
-
Version: 2.34.
|
|
3
|
+
Version: 2.34.2
|
|
4
4
|
Summary: Library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
|
|
5
5
|
Home-page: https://github.com/imageio/imageio
|
|
6
6
|
Download-URL: http://pypi.python.org/pypi/imageio
|
|
@@ -70,7 +70,7 @@ def working_directory(path):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
@pytest.fixture(scope="session")
|
|
73
|
-
def test_images(request):
|
|
73
|
+
def test_images(request, pytestconfig):
|
|
74
74
|
"""A collection of test images.
|
|
75
75
|
|
|
76
76
|
Note: The images are cached persistently (across test runs) in
|
|
@@ -81,6 +81,7 @@ def test_images(request):
|
|
|
81
81
|
# downloaded once in the beginning
|
|
82
82
|
|
|
83
83
|
checkout_dir = request.config.cache.get("imageio_test_binaries", None)
|
|
84
|
+
use_internet = "not needs_internet" not in pytestconfig.getoption("-m")
|
|
84
85
|
|
|
85
86
|
if checkout_dir is not None and not Path(checkout_dir).exists():
|
|
86
87
|
# cache value set, but cache is gone :( ... recreate
|
|
@@ -90,6 +91,8 @@ def test_images(request):
|
|
|
90
91
|
# download test images and other binaries
|
|
91
92
|
checkout_dir = Path(__file__).parents[1] / ".test_images"
|
|
92
93
|
|
|
94
|
+
if not checkout_dir.exists() and not use_internet:
|
|
95
|
+
pytest.skip("Internet use disabled and `.test_images` not found.")
|
|
93
96
|
try:
|
|
94
97
|
checkout_dir.mkdir()
|
|
95
98
|
except FileExistsError:
|
|
@@ -103,14 +106,15 @@ def test_images(request):
|
|
|
103
106
|
|
|
104
107
|
checkout_dir = Path(checkout_dir)
|
|
105
108
|
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
if use_internet:
|
|
110
|
+
with working_directory(checkout_dir):
|
|
111
|
+
result = os.system("git pull")
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
if result != 0:
|
|
114
|
+
request.config.cache.set("imageio_test_binaries", None)
|
|
115
|
+
raise RuntimeError(
|
|
116
|
+
"Cache directory is corrupt. Delete `.test_images` at project root."
|
|
117
|
+
)
|
|
114
118
|
|
|
115
119
|
return checkout_dir
|
|
116
120
|
|
|
@@ -175,12 +179,6 @@ def tmp_userdir(tmp_path):
|
|
|
175
179
|
del os.environ[user_dir_env]
|
|
176
180
|
|
|
177
181
|
|
|
178
|
-
def pytest_collection_modifyitems(items):
|
|
179
|
-
for item in items:
|
|
180
|
-
if "test_images" in getattr(item, "fixturenames", ()):
|
|
181
|
-
item.add_marker("needs_internet")
|
|
182
|
-
|
|
183
|
-
|
|
184
182
|
def deprecated_test(fn):
|
|
185
183
|
@wraps(fn)
|
|
186
184
|
def wrapper(*args, **kwargs):
|
|
@@ -191,3 +191,15 @@ def test_v3_reading(test_images):
|
|
|
191
191
|
actual = iio3.imread(test_images / "dicom_file01.dcm")
|
|
192
192
|
|
|
193
193
|
assert np.allclose(actual, expected)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def test_contiguous_dicom_series(test_images, tmp_path):
|
|
197
|
+
# this is a regression test for
|
|
198
|
+
# https://github.com/imageio/imageio/issues/1067
|
|
199
|
+
fname = test_images / "dicom_issue_1067.zip"
|
|
200
|
+
with ZipFile(fname) as zip_ref:
|
|
201
|
+
zip_ref.extractall(tmp_path)
|
|
202
|
+
|
|
203
|
+
dname = tmp_path / "modified_dicom_sample1"
|
|
204
|
+
ims = iio.volread(dname, "DICOM")
|
|
205
|
+
assert ims.shape == (25, 512, 512)
|
|
@@ -30,6 +30,11 @@ imageio_ffmpeg = pytest.importorskip(
|
|
|
30
30
|
"imageio_ffmpeg", reason="imageio-ffmpeg is not installed"
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
+
try:
|
|
34
|
+
imageio_ffmpeg.get_ffmpeg_version()
|
|
35
|
+
except RuntimeError:
|
|
36
|
+
pytest.skip("No compatible FFMPEG binary could be found.", allow_module_level=True)
|
|
37
|
+
|
|
33
38
|
|
|
34
39
|
def get_ffmpeg_pids():
|
|
35
40
|
pids = set()
|
|
@@ -6,8 +6,14 @@ import pytest
|
|
|
6
6
|
import imageio
|
|
7
7
|
import sys
|
|
8
8
|
|
|
9
|
+
imageio_ffmpeg = pytest.importorskip(
|
|
10
|
+
"imageio_ffmpeg", reason="imageio-ffmpeg is not installed"
|
|
11
|
+
)
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
try:
|
|
14
|
+
imageio_ffmpeg.get_ffmpeg_version()
|
|
15
|
+
except RuntimeError:
|
|
16
|
+
pytest.skip("No compatible FFMPEG binary could be found.", allow_module_level=True)
|
|
11
17
|
|
|
12
18
|
|
|
13
19
|
def dedent(text, dedent=8):
|
|
@@ -72,8 +72,11 @@ def setup_library(tmp_path_factory, vendored_lib):
|
|
|
72
72
|
add = core.appdata_dir("imageio")
|
|
73
73
|
os.makedirs(add, exist_ok=True)
|
|
74
74
|
shutil.copytree(vendored_lib, os.path.join(add, "freeimage"))
|
|
75
|
+
|
|
76
|
+
try:
|
|
75
77
|
fi.load_freeimage()
|
|
76
|
-
|
|
78
|
+
except OSError:
|
|
79
|
+
pytest.skip("Could not find a compatible FreeImage version for this OS.")
|
|
77
80
|
|
|
78
81
|
yield
|
|
79
82
|
|
|
@@ -719,3 +719,13 @@ def test_avif_remote():
|
|
|
719
719
|
url = "https://github.com/link-u/avif-sample-images/raw/master/fox.profile0.10bpc.yuv420.avif"
|
|
720
720
|
im = iio.imread(url, plugin="pillow")
|
|
721
721
|
assert im.shape == (800, 1204, 3)
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
@pytest.mark.needs_internet
|
|
725
|
+
def test_webp_remote():
|
|
726
|
+
# this is a regression test for
|
|
727
|
+
# https://github.com/imageio/imageio/issues/1065
|
|
728
|
+
# the image in the issue is actually a webp image
|
|
729
|
+
url = "https://github.com/python-pillow/Pillow/raw/main/Tests/images/hopper_orientation_2.webp"
|
|
730
|
+
im = iio.imread(url, plugin="pillow")
|
|
731
|
+
assert im.shape == (128, 128, 3)
|
|
@@ -424,8 +424,8 @@ def test_bayer_write():
|
|
|
424
424
|
|
|
425
425
|
def test_sequential_reading(test_images):
|
|
426
426
|
expected_imgs = [
|
|
427
|
-
iio.imread(test_images / "cockatoo.mp4", index=1),
|
|
428
|
-
iio.imread(test_images / "cockatoo.mp4", index=5),
|
|
427
|
+
iio.imread(test_images / "cockatoo.mp4", plugin="pyav", index=1),
|
|
428
|
+
iio.imread(test_images / "cockatoo.mp4", plugin="pyav", index=5),
|
|
429
429
|
]
|
|
430
430
|
|
|
431
431
|
with iio.imopen(test_images / "cockatoo.mp4", "r", plugin="pyav") as img_file:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|