large-image-converter 1.30.5.dev8__py3-none-any.whl → 1.30.6__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.
- large_image_converter/__init__.py +4 -4
- large_image_converter/__main__.py +1 -1
- {large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/METADATA +15 -5
- large_image_converter-1.30.6.dist-info/RECORD +9 -0
- {large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/WHEEL +1 -1
- large_image_converter-1.30.5.dev8.dist-info/RECORD +0 -9
- {large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/LICENSE +0 -0
- {large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/entry_points.txt +0 -0
- {large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/top_level.txt +0 -0
|
@@ -80,7 +80,7 @@ def _data_from_large_image(path, outputPath, **kwargs):
|
|
|
80
80
|
try:
|
|
81
81
|
ts = large_image.open(path, noCache=True)
|
|
82
82
|
except Exception:
|
|
83
|
-
return
|
|
83
|
+
return None
|
|
84
84
|
else:
|
|
85
85
|
import urllib.parse
|
|
86
86
|
|
|
@@ -285,7 +285,7 @@ def _convert_via_vips(inputPathOrBuffer, outputPath, tempPath, forTiled=True,
|
|
|
285
285
|
adjusted = format_hook('modify_vips_image_before_output', image, convertParams, **kwargs)
|
|
286
286
|
if adjusted is False:
|
|
287
287
|
return
|
|
288
|
-
|
|
288
|
+
if adjusted:
|
|
289
289
|
image = adjusted
|
|
290
290
|
if (convertParams['compression'] not in {'jpeg'} or
|
|
291
291
|
image.interpretation != pyvips.Interpretation.SCRGB):
|
|
@@ -936,7 +936,7 @@ def convert(inputPath, outputPath=None, **kwargs): # noqa: C901
|
|
|
936
936
|
logger.debug('Is file geospatial: %r', geospatial)
|
|
937
937
|
suffix = format_hook('adjust_params', geospatial, kwargs, **kwargs)
|
|
938
938
|
if suffix is False:
|
|
939
|
-
return
|
|
939
|
+
return None
|
|
940
940
|
suffix = suffix or ('.tiff' if not geospatial else '.geo.tiff')
|
|
941
941
|
if not outputPath:
|
|
942
942
|
outputPath = os.path.splitext(inputPath)[0] + suffix
|
|
@@ -953,7 +953,7 @@ def convert(inputPath, outputPath=None, **kwargs): # noqa: C901
|
|
|
953
953
|
except Exception:
|
|
954
954
|
tiffinfo = None
|
|
955
955
|
eightbit = _is_eightbit(inputPath, tiffinfo)
|
|
956
|
-
if not kwargs.get('compression'
|
|
956
|
+
if not kwargs.get('compression'):
|
|
957
957
|
kwargs = kwargs.copy()
|
|
958
958
|
lossy = _is_lossy(inputPath, tiffinfo)
|
|
959
959
|
logger.debug('Is file lossy: %r', lossy)
|
|
@@ -260,7 +260,7 @@ def main(args=sys.argv[1:]):
|
|
|
260
260
|
desc = json.loads(info['ifds'][0]['tags'][tifftools.Tag.ImageDescription.value]['data'])
|
|
261
261
|
except Exception:
|
|
262
262
|
logger.debug('Cannot generate statistics.')
|
|
263
|
-
return
|
|
263
|
+
return None
|
|
264
264
|
desc['large_image_converter']['conversion_stats'] = {
|
|
265
265
|
'time': end_time - start_time,
|
|
266
266
|
'filesize': os.path.getsize(dest),
|
{large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: large-image-converter
|
|
3
|
-
Version: 1.30.
|
|
3
|
+
Version: 1.30.6
|
|
4
4
|
Summary: Converter for Large Image.
|
|
5
5
|
Author: Kitware Inc
|
|
6
6
|
Author-email: kitware@kitware.com
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Requires-Python: >=3.8
|
|
20
20
|
Description-Content-Type: text/x-rst
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: large-image-source-tiff>=1.30.
|
|
22
|
+
Requires-Dist: large-image-source-tiff>=1.30.6
|
|
23
23
|
Requires-Dist: numpy
|
|
24
24
|
Requires-Dist: psutil
|
|
25
25
|
Requires-Dist: pyvips
|
|
@@ -29,16 +29,26 @@ Requires-Dist: glymur; extra == "jp2k"
|
|
|
29
29
|
Provides-Extra: geospatial
|
|
30
30
|
Requires-Dist: gdal; extra == "geospatial"
|
|
31
31
|
Provides-Extra: sources
|
|
32
|
-
Requires-Dist: large-image[sources]>=1.30.
|
|
32
|
+
Requires-Dist: large-image[sources]>=1.30.6; extra == "sources"
|
|
33
33
|
Provides-Extra: stats
|
|
34
34
|
Requires-Dist: packaging; extra == "stats"
|
|
35
35
|
Requires-Dist: scikit-image; extra == "stats"
|
|
36
36
|
Provides-Extra: all
|
|
37
37
|
Requires-Dist: glymur; extra == "all"
|
|
38
38
|
Requires-Dist: gdal; extra == "all"
|
|
39
|
-
Requires-Dist: large-image[sources]>=1.30.
|
|
39
|
+
Requires-Dist: large-image[sources]>=1.30.6; extra == "all"
|
|
40
40
|
Requires-Dist: packaging; extra == "all"
|
|
41
41
|
Requires-Dist: scikit-image; extra == "all"
|
|
42
|
+
Dynamic: author
|
|
43
|
+
Dynamic: author-email
|
|
44
|
+
Dynamic: classifier
|
|
45
|
+
Dynamic: description
|
|
46
|
+
Dynamic: description-content-type
|
|
47
|
+
Dynamic: license
|
|
48
|
+
Dynamic: provides-extra
|
|
49
|
+
Dynamic: requires-dist
|
|
50
|
+
Dynamic: requires-python
|
|
51
|
+
Dynamic: summary
|
|
42
52
|
|
|
43
53
|
*********************
|
|
44
54
|
Large Image Converter
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
large_image_converter/__init__.py,sha256=ruPff72iAlYSCYGSlbhiaiIoBFaTzmqLfohrYk5Wloc,41183
|
|
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.30.6.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
5
|
+
large_image_converter-1.30.6.dist-info/METADATA,sha256=56hrqbao1tZunSOjJRjb-vajFPOws03J4wEWgCvt0OM,4879
|
|
6
|
+
large_image_converter-1.30.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
+
large_image_converter-1.30.6.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
|
|
8
|
+
large_image_converter-1.30.6.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
|
|
9
|
+
large_image_converter-1.30.6.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
large_image_converter/__init__.py,sha256=_ixZBvfS3K_jOh2T98o37EF8jjZLrpNTw-ZXkW9r--w,41181
|
|
2
|
-
large_image_converter/__main__.py,sha256=bGQaCR01kTGTnW2c2Z9z5BIiPSpCRPfj7_kPgppLeB4,13353
|
|
3
|
-
large_image_converter/format_aperio.py,sha256=NkKY3gaSjPlfxvcTQgFiMADdq_mkdpKjGQ7WT_QsvaM,11761
|
|
4
|
-
large_image_converter-1.30.5.dev8.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
5
|
-
large_image_converter-1.30.5.dev8.dist-info/METADATA,sha256=WiEj_xhwwPlbSW4-uVT0pg97SLZxPT0nkDdGEydKDBw,4680
|
|
6
|
-
large_image_converter-1.30.5.dev8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
-
large_image_converter-1.30.5.dev8.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
|
|
8
|
-
large_image_converter-1.30.5.dev8.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
|
|
9
|
-
large_image_converter-1.30.5.dev8.dist-info/RECORD,,
|
{large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{large_image_converter-1.30.5.dev8.dist-info → large_image_converter-1.30.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|