imageio 2.37.2__tar.gz → 2.37.3__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.
Files changed (128) hide show
  1. {imageio-2.37.2 → imageio-2.37.3/ImageIO.egg-info}/PKG-INFO +5 -5
  2. {imageio-2.37.2 → imageio-2.37.3}/LICENSE +1 -1
  3. {imageio-2.37.2/ImageIO.egg-info → imageio-2.37.3}/PKG-INFO +5 -5
  4. {imageio-2.37.2 → imageio-2.37.3}/README.md +3 -3
  5. {imageio-2.37.2 → imageio-2.37.3}/docs/conf.py +1 -1
  6. {imageio-2.37.2 → imageio-2.37.3}/imageio/__init__.py +2 -2
  7. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/findlib.py +1 -2
  8. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/format.py +0 -1
  9. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/util.py +0 -2
  10. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/__init__.py +0 -1
  11. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/_dicom.py +0 -1
  12. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/_swf.py +0 -1
  13. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/_tifffile.py +3 -5
  14. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/feisem.py +0 -1
  15. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/freeimagemulti.py +2 -2
  16. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/lytro.py +2 -2
  17. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/pillow_legacy.py +0 -1
  18. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/spe.py +0 -1
  19. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/swf.py +0 -1
  20. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/tifffile.py +0 -1
  21. {imageio-2.37.2 → imageio-2.37.3}/pyproject.toml +5 -2
  22. {imageio-2.37.2 → imageio-2.37.3}/tests/test_core.py +1 -1
  23. {imageio-2.37.2 → imageio-2.37.3}/tests/test_ffmpeg_info.py +2 -4
  24. {imageio-2.37.2 → imageio-2.37.3}/tests/test_lytro.py +0 -1
  25. {imageio-2.37.2 → imageio-2.37.3}/tests/test_pillow.py +0 -1
  26. {imageio-2.37.2 → imageio-2.37.3}/tests/test_spe.py +0 -1
  27. {imageio-2.37.2 → imageio-2.37.3}/CONTRIBUTORS.txt +0 -0
  28. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/SOURCES.txt +0 -0
  29. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/dependency_links.txt +0 -0
  30. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/entry_points.txt +0 -0
  31. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/not-zip-safe +0 -0
  32. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/requires.txt +0 -0
  33. {imageio-2.37.2 → imageio-2.37.3}/ImageIO.egg-info/top_level.txt +0 -0
  34. {imageio-2.37.2 → imageio-2.37.3}/MANIFEST.in +0 -0
  35. {imageio-2.37.2 → imageio-2.37.3}/docs/Makefile +0 -0
  36. {imageio-2.37.2 → imageio-2.37.3}/docs/_static/imageio_logo.png +0 -0
  37. {imageio-2.37.2 → imageio-2.37.3}/docs/_templates/better_class.rst +0 -0
  38. {imageio-2.37.2 → imageio-2.37.3}/docs/_templates/formats.rst.template +0 -0
  39. {imageio-2.37.2 → imageio-2.37.3}/docs/_templates/plugin.rst +0 -0
  40. {imageio-2.37.2 → imageio-2.37.3}/docs/development/index.rst +0 -0
  41. {imageio-2.37.2 → imageio-2.37.3}/docs/development/plugins.rst +0 -0
  42. {imageio-2.37.2 → imageio-2.37.3}/docs/examples.rst +0 -0
  43. {imageio-2.37.2 → imageio-2.37.3}/docs/formats/formats_by_plugin.rst +0 -0
  44. {imageio-2.37.2 → imageio-2.37.3}/docs/formats/index.rst +0 -0
  45. {imageio-2.37.2 → imageio-2.37.3}/docs/formats/video_formats.rst +0 -0
  46. {imageio-2.37.2 → imageio-2.37.3}/docs/imageio_ext.py +0 -0
  47. {imageio-2.37.2 → imageio-2.37.3}/docs/index.rst +0 -0
  48. {imageio-2.37.2 → imageio-2.37.3}/docs/make.bat +0 -0
  49. {imageio-2.37.2 → imageio-2.37.3}/docs/reference/core_v3.rst +0 -0
  50. {imageio-2.37.2 → imageio-2.37.3}/docs/reference/index.rst +0 -0
  51. {imageio-2.37.2 → imageio-2.37.3}/docs/reference/userapi.rst +0 -0
  52. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/cmdlinescripts.rst +0 -0
  53. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/drop27.rst +0 -0
  54. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/envvariables.rst +0 -0
  55. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/freezing.rst +0 -0
  56. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/index.rst +0 -0
  57. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/installation.rst +0 -0
  58. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/overview.rst +0 -0
  59. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/requests.rst +0 -0
  60. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/scipy.rst +0 -0
  61. {imageio-2.37.2 → imageio-2.37.3}/docs/user_guide/standardimages.rst +0 -0
  62. {imageio-2.37.2 → imageio-2.37.3}/imageio/__main__.py +0 -0
  63. {imageio-2.37.2 → imageio-2.37.3}/imageio/config/__init__.py +0 -0
  64. {imageio-2.37.2 → imageio-2.37.3}/imageio/config/extensions.py +0 -0
  65. {imageio-2.37.2 → imageio-2.37.3}/imageio/config/extensions.pyi +0 -0
  66. {imageio-2.37.2 → imageio-2.37.3}/imageio/config/plugins.py +0 -0
  67. {imageio-2.37.2 → imageio-2.37.3}/imageio/config/plugins.pyi +0 -0
  68. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/__init__.py +0 -0
  69. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/fetching.py +0 -0
  70. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/format.pyi +0 -0
  71. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/imopen.py +0 -0
  72. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/imopen.pyi +0 -0
  73. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/legacy_plugin_wrapper.py +0 -0
  74. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/legacy_plugin_wrapper.pyi +0 -0
  75. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/request.py +0 -0
  76. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/request.pyi +0 -0
  77. {imageio-2.37.2 → imageio-2.37.3}/imageio/core/v3_plugin_api.py +0 -0
  78. {imageio-2.37.2 → imageio-2.37.3}/imageio/freeze.py +0 -0
  79. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/_bsdf.py +0 -0
  80. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/_freeimage.py +0 -0
  81. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/bsdf.py +0 -0
  82. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/dicom.py +0 -0
  83. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/example.py +0 -0
  84. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/ffmpeg.py +0 -0
  85. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/fits.py +0 -0
  86. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/freeimage.py +0 -0
  87. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/gdal.py +0 -0
  88. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/grab.py +0 -0
  89. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/npz.py +0 -0
  90. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/opencv.py +0 -0
  91. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/pillow.py +0 -0
  92. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/pillow_info.py +0 -0
  93. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/pillowmulti.py +0 -0
  94. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/pyav.py +0 -0
  95. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/rawpy.py +0 -0
  96. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/simpleitk.py +0 -0
  97. {imageio-2.37.2 → imageio-2.37.3}/imageio/plugins/tifffile_v3.py +0 -0
  98. {imageio-2.37.2 → imageio-2.37.3}/imageio/py.typed +0 -0
  99. {imageio-2.37.2 → imageio-2.37.3}/imageio/testing.py +0 -0
  100. {imageio-2.37.2 → imageio-2.37.3}/imageio/typing.py +0 -0
  101. {imageio-2.37.2 → imageio-2.37.3}/imageio/v2.py +0 -0
  102. {imageio-2.37.2 → imageio-2.37.3}/imageio/v2.pyi +0 -0
  103. {imageio-2.37.2 → imageio-2.37.3}/imageio/v3.py +0 -0
  104. {imageio-2.37.2 → imageio-2.37.3}/imageio/v3.pyi +0 -0
  105. {imageio-2.37.2 → imageio-2.37.3}/setup.cfg +0 -0
  106. {imageio-2.37.2 → imageio-2.37.3}/tests/conftest.py +0 -0
  107. {imageio-2.37.2 → imageio-2.37.3}/tests/test_bsdf.py +0 -0
  108. {imageio-2.37.2 → imageio-2.37.3}/tests/test_config.py +0 -0
  109. {imageio-2.37.2 → imageio-2.37.3}/tests/test_dicom.py +0 -0
  110. {imageio-2.37.2 → imageio-2.37.3}/tests/test_fei_tiff.py +0 -0
  111. {imageio-2.37.2 → imageio-2.37.3}/tests/test_ffmpeg.py +0 -0
  112. {imageio-2.37.2 → imageio-2.37.3}/tests/test_fits.py +0 -0
  113. {imageio-2.37.2 → imageio-2.37.3}/tests/test_format.py +0 -0
  114. {imageio-2.37.2 → imageio-2.37.3}/tests/test_freeimage.py +0 -0
  115. {imageio-2.37.2 → imageio-2.37.3}/tests/test_gdal.py +0 -0
  116. {imageio-2.37.2 → imageio-2.37.3}/tests/test_grab.py +0 -0
  117. {imageio-2.37.2 → imageio-2.37.3}/tests/test_legacy_plugin_wrapper.py +0 -0
  118. {imageio-2.37.2 → imageio-2.37.3}/tests/test_meta.py +0 -0
  119. {imageio-2.37.2 → imageio-2.37.3}/tests/test_npz.py +0 -0
  120. {imageio-2.37.2 → imageio-2.37.3}/tests/test_opencv.py +0 -0
  121. {imageio-2.37.2 → imageio-2.37.3}/tests/test_pillow_legacy.py +0 -0
  122. {imageio-2.37.2 → imageio-2.37.3}/tests/test_pyav.py +0 -0
  123. {imageio-2.37.2 → imageio-2.37.3}/tests/test_rawpy.py +0 -0
  124. {imageio-2.37.2 → imageio-2.37.3}/tests/test_simpleitk.py +0 -0
  125. {imageio-2.37.2 → imageio-2.37.3}/tests/test_swf.py +0 -0
  126. {imageio-2.37.2 → imageio-2.37.3}/tests/test_tifffile.py +0 -0
  127. {imageio-2.37.2 → imageio-2.37.3}/tests/test_tifffile_v3.py +0 -0
  128. {imageio-2.37.2 → imageio-2.37.3}/tests/test_v2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ImageIO
3
- Version: 2.37.2
3
+ Version: 2.37.3
4
4
  Summary: Read and write images and video across all major formats. Supports scientific and volumetric data.
5
5
  Author: ImageIO contributors
6
6
  Maintainer-email: Sebastian Wallkotter <sebastian@wallkoetter.net>, Almar Klein <almar.klein@gmail.com>
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: 3.13
25
25
  Classifier: Programming Language :: Python :: 3.14
26
- Requires-Python: >=3.9
26
+ Requires-Python: >=3.10
27
27
  Description-Content-Type: text/x-rst
28
28
  License-File: LICENSE
29
29
  Requires-Dist: numpy
@@ -125,7 +125,7 @@ Website: <https://imageio.readthedocs.io/>
125
125
 
126
126
  Imageio is a mature Python library that makes it easy to read and write image
127
127
  and video data. This includes animated images, video, volumetric data, and
128
- scientific formats. It is cross-platform, runs on Python 3.9+, and is easy to
128
+ scientific formats. It is cross-platform, runs on Python 3.10+, and is easy to
129
129
  install.
130
130
 
131
131
  Professional support is available via
@@ -165,7 +165,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
165
165
  [install](https://imageio.readthedocs.io/en/stable/getting_started/installation.html)
166
166
  using Conda or pip
167
167
  - Few core dependencies (only NumPy and Pillow)
168
- - Pure Python, runs on Python 3.9+, and PyPy
168
+ - Pure Python, runs on Python 3.10+, and PyPy
169
169
  - Cross platform, runs on Windows, Linux, macOS
170
170
  - More than 295 supported
171
171
  [formats](https://imageio.readthedocs.io/en/stable/formats/index.html)
@@ -179,7 +179,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
179
179
 
180
180
  Minimal requirements:
181
181
 
182
- - Python 3.9+
182
+ - Python 3.10+
183
183
  - NumPy
184
184
  - Pillow >= 8.3.2
185
185
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2025, imageio developers
1
+ Copyright (c) 2014-2026, imageio developers
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ImageIO
3
- Version: 2.37.2
3
+ Version: 2.37.3
4
4
  Summary: Read and write images and video across all major formats. Supports scientific and volumetric data.
5
5
  Author: ImageIO contributors
6
6
  Maintainer-email: Sebastian Wallkotter <sebastian@wallkoetter.net>, Almar Klein <almar.klein@gmail.com>
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: 3.13
25
25
  Classifier: Programming Language :: Python :: 3.14
26
- Requires-Python: >=3.9
26
+ Requires-Python: >=3.10
27
27
  Description-Content-Type: text/x-rst
28
28
  License-File: LICENSE
29
29
  Requires-Dist: numpy
@@ -125,7 +125,7 @@ Website: <https://imageio.readthedocs.io/>
125
125
 
126
126
  Imageio is a mature Python library that makes it easy to read and write image
127
127
  and video data. This includes animated images, video, volumetric data, and
128
- scientific formats. It is cross-platform, runs on Python 3.9+, and is easy to
128
+ scientific formats. It is cross-platform, runs on Python 3.10+, and is easy to
129
129
  install.
130
130
 
131
131
  Professional support is available via
@@ -165,7 +165,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
165
165
  [install](https://imageio.readthedocs.io/en/stable/getting_started/installation.html)
166
166
  using Conda or pip
167
167
  - Few core dependencies (only NumPy and Pillow)
168
- - Pure Python, runs on Python 3.9+, and PyPy
168
+ - Pure Python, runs on Python 3.10+, and PyPy
169
169
  - Cross platform, runs on Windows, Linux, macOS
170
170
  - More than 295 supported
171
171
  [formats](https://imageio.readthedocs.io/en/stable/formats/index.html)
@@ -179,7 +179,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
179
179
 
180
180
  Minimal requirements:
181
181
 
182
- - Python 3.9+
182
+ - Python 3.10+
183
183
  - NumPy
184
184
  - Pillow >= 8.3.2
185
185
 
@@ -14,7 +14,7 @@ Website: <https://imageio.readthedocs.io/>
14
14
 
15
15
  Imageio is a mature Python library that makes it easy to read and write image
16
16
  and video data. This includes animated images, video, volumetric data, and
17
- scientific formats. It is cross-platform, runs on Python 3.9+, and is easy to
17
+ scientific formats. It is cross-platform, runs on Python 3.10+, and is easy to
18
18
  install.
19
19
 
20
20
  Professional support is available via
@@ -54,7 +54,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
54
54
  [install](https://imageio.readthedocs.io/en/stable/getting_started/installation.html)
55
55
  using Conda or pip
56
56
  - Few core dependencies (only NumPy and Pillow)
57
- - Pure Python, runs on Python 3.9+, and PyPy
57
+ - Pure Python, runs on Python 3.10+, and PyPy
58
58
  - Cross platform, runs on Windows, Linux, macOS
59
59
  - More than 295 supported
60
60
  [formats](https://imageio.readthedocs.io/en/stable/formats/index.html)
@@ -68,7 +68,7 @@ See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html
68
68
 
69
69
  Minimal requirements:
70
70
 
71
- - Python 3.9+
71
+ - Python 3.10+
72
72
  - NumPy
73
73
  - Pillow >= 8.3.2
74
74
 
@@ -74,7 +74,7 @@ master_doc = "index"
74
74
 
75
75
  # General information about the project.
76
76
  project = "imageio"
77
- copyright = "2014-2024, imageio contributors"
77
+ copyright = "2014-2026, imageio contributors"
78
78
 
79
79
  # The version info for the project you're documenting, acts as replacement for
80
80
  # |version| and |release|, also used in various other places throughout the
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright (c) 2014-2020, imageio contributors
2
+ # Copyright (c) 2014-2026, imageio contributors
3
3
  # imageio is distributed under the terms of the (new) BSD License.
4
4
 
5
5
  # This docstring is used at the index of the documentation pages, and
@@ -8,7 +8,7 @@
8
8
  """
9
9
  Imageio is a Python library that provides an easy interface to read and
10
10
  write a wide range of image data, including animated images, volumetric
11
- data, and scientific formats. It is cross-platform, runs on Python 3.9+,
11
+ data, and scientific formats. It is cross-platform, runs on Python 3.10+,
12
12
  and is easy to install.
13
13
 
14
14
  Main website: https://imageio.readthedocs.io/
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright (c) 2015-1018, imageio contributors
2
+ # Copyright (c) 2015-2026, imageio contributors
3
3
  # Copyright (C) 2013, Zach Pincus, Almar Klein and others
4
4
 
5
5
  """This module contains generic code to find and load a dynamic library."""
@@ -8,7 +8,6 @@ import os
8
8
  import sys
9
9
  import ctypes
10
10
 
11
-
12
11
  LOCALDIR = os.path.abspath(os.path.dirname(__file__))
13
12
 
14
13
  # Flag that can be patched / set to True to disable loading non-system libs
@@ -42,7 +42,6 @@ from ..config import known_plugins, known_extensions, PluginConfig, FileExtensio
42
42
  from ..config.plugins import _original_order
43
43
  from .imopen import imopen
44
44
 
45
-
46
45
  # survived for backwards compatibility
47
46
  # I don't know if external plugin code depends on it existing
48
47
  # We no longer do
@@ -5,7 +5,6 @@
5
5
  Various utilities for imageio
6
6
  """
7
7
 
8
-
9
8
  from collections import OrderedDict
10
9
  import numpy as np
11
10
  import os
@@ -15,7 +14,6 @@ import sys
15
14
  import time
16
15
  import logging
17
16
 
18
-
19
17
  logger = logging.getLogger("imageio")
20
18
 
21
19
  IS_PYPY = "__pypy__" in sys.builtin_module_names
@@ -64,7 +64,6 @@ import importlib
64
64
  import os
65
65
  import warnings
66
66
 
67
-
68
67
  # v2 imports remove in v3
69
68
  from .. import formats
70
69
 
@@ -18,7 +18,6 @@ import logging
18
18
 
19
19
  import numpy as np
20
20
 
21
-
22
21
  logger = logging.getLogger(__name__)
23
22
 
24
23
  # Determine endianity of system
@@ -42,7 +42,6 @@ import logging
42
42
 
43
43
  import numpy as np
44
44
 
45
-
46
45
  logger = logging.getLogger(__name__)
47
46
 
48
47
  # todo: use Pillow to support reading JPEG images from SWF?
@@ -4734,8 +4734,7 @@ class TiffSequence(object):
4734
4734
 
4735
4735
  """
4736
4736
 
4737
- _patterns = {
4738
- "axes": r"""
4737
+ _patterns = {"axes": r"""
4739
4738
  # matches Olympus OIF and Leica TIFF series
4740
4739
  _?(?:(q|l|p|a|c|t|x|y|z|ch|tp)(\d{1,4}))
4741
4740
  _?(?:(q|l|p|a|c|t|x|y|z|ch|tp)(\d{1,4}))?
@@ -4744,8 +4743,7 @@ class TiffSequence(object):
4744
4743
  _?(?:(q|l|p|a|c|t|x|y|z|ch|tp)(\d{1,4}))?
4745
4744
  _?(?:(q|l|p|a|c|t|x|y|z|ch|tp)(\d{1,4}))?
4746
4745
  _?(?:(q|l|p|a|c|t|x|y|z|ch|tp)(\d{1,4}))?
4747
- """
4748
- }
4746
+ """}
4749
4747
 
4750
4748
  class ParseError(Exception):
4751
4749
  pass
@@ -7809,7 +7807,7 @@ def read_lsm_channelcolors(fh):
7809
7807
  """Read LSM ChannelColors structure from file and return as dict."""
7810
7808
  result = {"Mono": False, "Colors": [], "ColorNames": []}
7811
7809
  pos = fh.tell()
7812
- (size, ncolors, nnames, coffset, noffset, mono) = struct.unpack(
7810
+ size, ncolors, nnames, coffset, noffset, mono = struct.unpack(
7813
7811
  "<IIIIII", fh.read(24)
7814
7812
  )
7815
7813
  if ncolors != nnames:
@@ -23,7 +23,6 @@ See Also
23
23
 
24
24
  """
25
25
 
26
-
27
26
  from .tifffile import TiffFormat
28
27
 
29
28
 
@@ -306,8 +306,8 @@ class GifFormat(FreeimageMulti):
306
306
  Y = np.argwhere(diff.sum(1))
307
307
  # Get rect coordinates
308
308
  if X.size and Y.size:
309
- x0, x1 = int(X[0]), int(X[-1]) + 1
310
- y0, y1 = int(Y[0]), int(Y[-1]) + 1
309
+ x0, x1 = X[0].item(), X[-1].item() + 1
310
+ y0, y1 = Y[0].item(), Y[-1].item() + 1
311
311
  else: # No change ... make it minimal
312
312
  x0, x1 = 0, 2
313
313
  y0, y1 = 0, 2
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright (c) 2018, imageio contributors
2
+ # Copyright (c) 2018-2026, imageio contributors
3
3
  # imageio is distributed under the terms of the (new) BSD License.
4
4
  #
5
5
 
@@ -20,6 +20,7 @@ include_thumbnail : bool
20
20
  Whether to include an image thumbnail in the metadata.
21
21
 
22
22
  """
23
+
23
24
  #
24
25
  #
25
26
  # This code is based on work by
@@ -42,7 +43,6 @@ import numpy as np
42
43
  from ..core import Format
43
44
  from ..v2 import imread
44
45
 
45
-
46
46
  logger = logging.getLogger(__name__)
47
47
 
48
48
 
@@ -173,7 +173,6 @@ import numpy as np
173
173
  from ..core import Format, image_as_uint
174
174
  from ..core.request import URI_FILE, URI_BYTES
175
175
 
176
-
177
176
  logger = logging.getLogger(__name__)
178
177
 
179
178
 
@@ -58,7 +58,6 @@ import numpy as np
58
58
  from ..core.request import Request, IOMode, InitializationError
59
59
  from ..core.v3_plugin_api import PluginV3, ImageProperties
60
60
 
61
-
62
61
  logger = logging.getLogger(__name__)
63
62
 
64
63
 
@@ -51,7 +51,6 @@ import numpy as np
51
51
 
52
52
  from ..core import Format, read_n_bytes, image_as_uint
53
53
 
54
-
55
54
  logger = logging.getLogger(__name__)
56
55
 
57
56
  _swf = None # lazily loaded in lib()
@@ -182,7 +182,6 @@ from ..core.request import URI_BYTES, URI_FILE
182
182
  import numpy as np
183
183
  import warnings
184
184
 
185
-
186
185
  try:
187
186
  import tifffile as _tifffile
188
187
  except ImportError:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ImageIO"
7
- version = "2.37.2"
7
+ version = "2.37.3"
8
8
  authors = [
9
9
  {name = "ImageIO contributors"}
10
10
  ]
@@ -17,7 +17,7 @@ description = "Read and write images and video across all major formats. Support
17
17
 
18
18
  license = "BSD-2-Clause"
19
19
  license-files = ["LICENSE"]
20
- requires-python = ">=3.9"
20
+ requires-python = ">=3.10"
21
21
  dependencies = [
22
22
  "numpy",
23
23
  "pillow>=8.3.2", # pinned to > 8.3.2 due to security vulnerability (GHSA-98vv-pw6r-q6q4)
@@ -154,6 +154,9 @@ readme = {file = ["README.md"]}
154
154
  [tool.setuptools.package-data]
155
155
  imageio = ["py.typed", "**/*.pyi", "*.pyi"]
156
156
 
157
+ [tool.pytest.ini_options]
158
+ pythonpath = ["."]
159
+
157
160
  [tool.flake8]
158
161
  # Note: flake8 doesn't natively support pyproject.toml
159
162
  # This section is here for documentation; you may need to keep setup.cfg
@@ -924,7 +924,7 @@ def test_faulty_legacy_mode_access():
924
924
  def test_mvolread_out_of_bytes(test_images):
925
925
  with pytest.raises(RuntimeError):
926
926
  iio.mvolread(
927
- "https://github.com/imageio/imageio-binaries/blob/master/images/multipage_rgb.tif?raw=true",
927
+ test_images / "multipage_rgb.tif",
928
928
  memtest="1B",
929
929
  )
930
930
 
@@ -24,8 +24,7 @@ def dedent(text, dedent=8):
24
24
  def test_webcam_parse_device_names():
25
25
  # Ensure that the device list parser returns all video devices (issue #283)
26
26
 
27
- sample = dedent(
28
- r"""
27
+ sample = dedent(r"""
29
28
  ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
30
29
  built with gcc 6.3.0 (GCC)
31
30
  configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynthlibswresample 2. 3.100 / 2. 3.100
@@ -41,8 +40,7 @@ def test_webcam_parse_device_names():
41
40
  [dshow @ 039a7e20] "SPDIF Interface (Multimedia Audio Device)"
42
41
  [dshow @ 039a7e20] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{617B63FB-CFC0-4D10-AE30-42A66CAF6A4E}"
43
42
  dummy: Immediate exit requested
44
- """
45
- )
43
+ """)
46
44
 
47
45
  # Parse the sample
48
46
  device_names = imageio.plugins.ffmpeg.parse_device_names(sample)
@@ -9,7 +9,6 @@ import imageio.v2 as iio
9
9
  from imageio.core import Request
10
10
  from conftest import deprecated_test
11
11
 
12
-
13
12
  # Set file names for test images in imageio-binaries repo
14
13
  LFR_FILENAME = "Ankylosaurus_&_Stegosaurus.LFR"
15
14
  THUMB_FILENAME = "Ankylosaurus_&_Stegosaurus_Thumbnail.jpg"
@@ -12,7 +12,6 @@ from imageio.core.v3_plugin_api import PluginV3
12
12
  from imageio.plugins.pillow import PillowPlugin
13
13
  from PIL import Image, ImageSequence, ImageOps, __version__ # type: ignore
14
14
 
15
-
16
15
  PILLOW_VERSION = tuple(int(x) for x in __version__.split("."))
17
16
 
18
17
 
@@ -9,7 +9,6 @@ import pytest
9
9
  import imageio.v3 as iio
10
10
  from imageio.plugins import spe
11
11
 
12
-
13
12
  frame0 = np.zeros((32, 32), np.uint16)
14
13
  frame1 = np.ones_like(frame0)
15
14
 
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