large-image-converter 1.29.8.dev15__py3-none-any.whl → 1.30.7.dev30__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.

@@ -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
- elif adjusted:
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', None):
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),
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: large-image-converter
3
- Version: 1.29.8.dev15
3
+ Version: 1.30.7.dev30
4
4
  Summary: Converter for Large Image.
5
5
  Author: Kitware Inc
6
6
  Author-email: kitware@kitware.com
@@ -15,29 +15,40 @@ Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
18
19
  Requires-Python: >=3.8
19
20
  Description-Content-Type: text/x-rst
20
21
  License-File: LICENSE
21
- Requires-Dist: large-image-source-tiff >=1.29.8.dev15
22
+ Requires-Dist: large-image-source-tiff>=1.30.7.dev30
22
23
  Requires-Dist: numpy
23
24
  Requires-Dist: psutil
24
25
  Requires-Dist: pyvips
25
26
  Requires-Dist: tifftools
26
- Provides-Extra: all
27
- Requires-Dist: glymur ; extra == 'all'
28
- Requires-Dist: gdal ; extra == 'all'
29
- Requires-Dist: large-image[sources] >=1.29.8.dev15 ; extra == 'all'
30
- Requires-Dist: packaging ; extra == 'all'
31
- Requires-Dist: scikit-image ; extra == 'all'
32
- Provides-Extra: geospatial
33
- Requires-Dist: gdal ; extra == 'geospatial'
34
27
  Provides-Extra: jp2k
35
- Requires-Dist: glymur ; extra == 'jp2k'
28
+ Requires-Dist: glymur; extra == "jp2k"
29
+ Provides-Extra: geospatial
30
+ Requires-Dist: gdal; extra == "geospatial"
36
31
  Provides-Extra: sources
37
- Requires-Dist: large-image[sources] >=1.29.8.dev15 ; extra == 'sources'
32
+ Requires-Dist: large-image[sources]>=1.30.7.dev30; extra == "sources"
38
33
  Provides-Extra: stats
39
- Requires-Dist: packaging ; extra == 'stats'
40
- Requires-Dist: scikit-image ; extra == 'stats'
34
+ Requires-Dist: packaging; extra == "stats"
35
+ Requires-Dist: scikit-image; extra == "stats"
36
+ Provides-Extra: all
37
+ Requires-Dist: glymur; extra == "all"
38
+ Requires-Dist: gdal; extra == "all"
39
+ Requires-Dist: large-image[sources]>=1.30.7.dev30; extra == "all"
40
+ Requires-Dist: packaging; extra == "all"
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
41
52
 
42
53
  *********************
43
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.7.dev30.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
+ large_image_converter-1.30.7.dev30.dist-info/METADATA,sha256=lveqFJA-ZiOLtFvV6YTo0UIE5G_1MSGQ6kodHXdcqPY,4903
6
+ large_image_converter-1.30.7.dev30.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
+ large_image_converter-1.30.7.dev30.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
+ large_image_converter-1.30.7.dev30.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
+ large_image_converter-1.30.7.dev30.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.8.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=_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.29.8.dev15.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
- large_image_converter-1.29.8.dev15.dist-info/METADATA,sha256=sGaludoJTO_WAPHxBfOqB87FDnKZmHwt3zTsFZ6rsPY,4646
6
- large_image_converter-1.29.8.dev15.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
7
- large_image_converter-1.29.8.dev15.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
- large_image_converter-1.29.8.dev15.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
- large_image_converter-1.29.8.dev15.dist-info/RECORD,,