large-image-converter 1.32.3.dev3__py3-none-any.whl → 1.32.4__py3-none-any.whl

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.

Potentially problematic release.


This version of large-image-converter might be problematic. Click here for more details.

@@ -573,6 +573,14 @@ def _convert_large_image_frame(
573
573
  maxbands = max(strip.bands for strip in strips)
574
574
  if minbands != maxbands:
575
575
  strips = [strip[:minbands] for strip in strips]
576
+ # Persist the strips to temp files to build them into single objects;
577
+ # otherwise vips will use arbitrarily large amounts of memory
578
+ for sidx in range(len(strips)):
579
+ _pool_log(len(strips) - sidx, len(strips), 'resolving strips')
580
+ strip = strips[sidx]
581
+ vimgTemp = pyvips.Image.new_temp_file('%s.v')
582
+ strip.write(vimgTemp)
583
+ strips[sidx] = vimgTemp
576
584
  img = strips[0]
577
585
  for stripidx in range(1, len(strips)):
578
586
  img = img.insert(strips[stripidx], 0, stripidx * _iterTileSize, expand=True)
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: large-image-converter
3
- Version: 1.32.3.dev3
3
+ Version: 1.32.4
4
4
  Summary: Converter for Large Image.
5
5
  Author: Kitware Inc
6
6
  Author-email: kitware@kitware.com
7
7
  License: Apache-2.0
8
8
  Classifier: Development Status :: 5 - Production/Stable
9
- Classifier: License :: OSI Approved :: Apache Software License
10
9
  Classifier: Topic :: Scientific/Engineering
11
10
  Classifier: Intended Audience :: Science/Research
12
11
  Classifier: Programming Language :: Python :: 3
@@ -19,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.13
19
18
  Requires-Python: >=3.8
20
19
  Description-Content-Type: text/x-rst
21
20
  License-File: LICENSE
22
- Requires-Dist: large-image-source-tiff>=1.32.3.dev3
21
+ Requires-Dist: large-image-source-tiff>=1.32.4
23
22
  Requires-Dist: numpy
24
23
  Requires-Dist: psutil
25
24
  Requires-Dist: pyvips
@@ -29,14 +28,14 @@ Requires-Dist: glymur; extra == "jp2k"
29
28
  Provides-Extra: geospatial
30
29
  Requires-Dist: gdal; extra == "geospatial"
31
30
  Provides-Extra: sources
32
- Requires-Dist: large-image[sources]>=1.32.3.dev3; extra == "sources"
31
+ Requires-Dist: large-image[sources]>=1.32.4; extra == "sources"
33
32
  Provides-Extra: stats
34
33
  Requires-Dist: packaging; extra == "stats"
35
34
  Requires-Dist: scikit-image; extra == "stats"
36
35
  Provides-Extra: all
37
36
  Requires-Dist: glymur; extra == "all"
38
37
  Requires-Dist: gdal; extra == "all"
39
- Requires-Dist: large-image[sources]>=1.32.3.dev3; extra == "all"
38
+ Requires-Dist: large-image[sources]>=1.32.4; extra == "all"
40
39
  Requires-Dist: packaging; extra == "all"
41
40
  Requires-Dist: scikit-image; extra == "all"
42
41
  Dynamic: author
@@ -0,0 +1,9 @@
1
+ large_image_converter/__init__.py,sha256=gAUfTuJ4_GdV_ltb21QLTCY3dkJVu_e-GF5Ll8Pzxsk,44445
2
+ large_image_converter/__main__.py,sha256=SZOjDmX42vH4GcKB_5wdDHyB-aOy9LCx4_J97vQEjug,13358
3
+ large_image_converter/format_aperio.py,sha256=NkKY3gaSjPlfxvcTQgFiMADdq_mkdpKjGQ7WT_QsvaM,11761
4
+ large_image_converter-1.32.4.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
+ large_image_converter-1.32.4.dist-info/METADATA,sha256=zkBHPZjSEndA-id_cKjsx3v6vHq3epodkZWW7tpF-Jw,4821
6
+ large_image_converter-1.32.4.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
7
+ large_image_converter-1.32.4.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
+ large_image_converter-1.32.4.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
+ large_image_converter-1.32.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- large_image_converter/__init__.py,sha256=8AQ_3ugUBZjcJcMfyVKAjLCh48aIhybu3oBhiPXaT1k,44053
2
- large_image_converter/__main__.py,sha256=SZOjDmX42vH4GcKB_5wdDHyB-aOy9LCx4_J97vQEjug,13358
3
- large_image_converter/format_aperio.py,sha256=NkKY3gaSjPlfxvcTQgFiMADdq_mkdpKjGQ7WT_QsvaM,11761
4
- large_image_converter-1.32.3.dev3.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
- large_image_converter-1.32.3.dev3.dist-info/METADATA,sha256=IzwfYUHMOeA_JJDhT-Rk_PNQckpQ1Fv-8b-u42hEpAA,4904
6
- large_image_converter-1.32.3.dev3.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
7
- large_image_converter-1.32.3.dev3.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
- large_image_converter-1.32.3.dev3.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
- large_image_converter-1.32.3.dev3.dist-info/RECORD,,