large-image-converter 1.30.6.dev35__py3-none-any.whl → 1.30.6.dev38__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
1
  Metadata-Version: 2.1
2
2
  Name: large-image-converter
3
- Version: 1.30.6.dev35
3
+ Version: 1.30.6.dev38
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.6.dev35
22
+ Requires-Dist: large-image-source-tiff>=1.30.6.dev38
23
23
  Requires-Dist: numpy
24
24
  Requires-Dist: psutil
25
25
  Requires-Dist: pyvips
@@ -29,14 +29,14 @@ 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.6.dev35; extra == "sources"
32
+ Requires-Dist: large-image[sources]>=1.30.6.dev38; 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.6.dev35; extra == "all"
39
+ Requires-Dist: large-image[sources]>=1.30.6.dev38; extra == "all"
40
40
  Requires-Dist: packaging; extra == "all"
41
41
  Requires-Dist: scikit-image; extra == "all"
42
42
 
@@ -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.dev38.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
+ large_image_converter-1.30.6.dev38.dist-info/METADATA,sha256=KVsjMjdgW6OenV4TaS6kdwqCVvJk18ITWjMDJ5AN7dQ,4684
6
+ large_image_converter-1.30.6.dev38.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
7
+ large_image_converter-1.30.6.dev38.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
+ large_image_converter-1.30.6.dev38.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
+ large_image_converter-1.30.6.dev38.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.7.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.30.6.dev35.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
5
- large_image_converter-1.30.6.dev35.dist-info/METADATA,sha256=FpdeV2odhD23R2ItX-iza5xPtwRLX42crjBwE4nVjpI,4684
6
- large_image_converter-1.30.6.dev35.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
- large_image_converter-1.30.6.dev35.dist-info/entry_points.txt,sha256=TkXGWAaHgquk_ZXfqHTjQLjv8RZriv6ioiJd7JL6UIs,78
8
- large_image_converter-1.30.6.dev35.dist-info/top_level.txt,sha256=cdRa-ZWWKzVHFsjK1Aq1f4bzAMPc3sgCpprmvpYczKg,22
9
- large_image_converter-1.30.6.dev35.dist-info/RECORD,,