large-image-source-vips 1.26.2.dev17__py3-none-any.whl → 1.26.2.dev19__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.
@@ -209,7 +209,8 @@ class VipsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
209
209
  img = self._getFrameImage(frame)
210
210
  x0, y0, x1, y1, step = self._xyzToCorners(x, y, z)
211
211
  tileimg = img.crop(x0, y0, x1 - x0, y1 - y0)
212
- tileimg = tileimg.reduce(step, step, kernel=pyvips.enums.Kernel.NEAREST)
212
+ if step != 1:
213
+ tileimg = tileimg.resize(1.0 / step, kernel=pyvips.enums.Kernel.NEAREST, gap=0)
213
214
  tile = np.ndarray(
214
215
  buffer=tileimg.write_to_memory(),
215
216
  dtype=GValueToDtype[tileimg.format],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-vips
3
- Version: 1.26.2.dev17
3
+ Version: 1.26.2.dev19
4
4
  Summary: A libvips tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Requires-Python: >=3.8
19
19
  License-File: LICENSE
20
- Requires-Dist: large-image >=1.26.2.dev17
20
+ Requires-Dist: large-image >=1.26.2.dev19
21
21
  Requires-Dist: numpy
22
22
  Requires-Dist: packaging
23
23
  Requires-Dist: pyvips
@@ -0,0 +1,8 @@
1
+ large_image_source_vips/__init__.py,sha256=rjqeWUaApDMkcXSybmpi8uxEM-gfr9VTdo4enwBLbm8,24314
2
+ large_image_source_vips/girder_source.py,sha256=ktR6okr3biCS3F_OL3IoSK0pJt-yQ3E0DqxCV8JPPV0,374
3
+ large_image_source_vips-1.26.2.dev19.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
+ large_image_source_vips-1.26.2.dev19.dist-info/METADATA,sha256=RYthj5DkRkH-MTHeXJk63bBDBFX4QirVuO2zTUzhcqc,1035
5
+ large_image_source_vips-1.26.2.dev19.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
6
+ large_image_source_vips-1.26.2.dev19.dist-info/entry_points.txt,sha256=_wnL3xXr4buLjA3KMMa5lIcKrigh1zyAnsGLscCxsAQ,166
7
+ large_image_source_vips-1.26.2.dev19.dist-info/top_level.txt,sha256=u2JHvU9Bo-IW8FjNWbSTW07ctPATUjfrE_ixIi-P9LE,24
8
+ large_image_source_vips-1.26.2.dev19.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- large_image_source_vips/__init__.py,sha256=LFHdEl5HzK5xYtRXX8WpeqIME4yVV-shGnuKVTqEoL8,24281
2
- large_image_source_vips/girder_source.py,sha256=ktR6okr3biCS3F_OL3IoSK0pJt-yQ3E0DqxCV8JPPV0,374
3
- large_image_source_vips-1.26.2.dev17.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- large_image_source_vips-1.26.2.dev17.dist-info/METADATA,sha256=Vr232UA7pvNPcZxE7V-vzrp2IbOoaBWf2U42RsBSdxY,1035
5
- large_image_source_vips-1.26.2.dev17.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
6
- large_image_source_vips-1.26.2.dev17.dist-info/entry_points.txt,sha256=_wnL3xXr4buLjA3KMMa5lIcKrigh1zyAnsGLscCxsAQ,166
7
- large_image_source_vips-1.26.2.dev17.dist-info/top_level.txt,sha256=u2JHvU9Bo-IW8FjNWbSTW07ctPATUjfrE_ixIi-P9LE,24
8
- large_image_source_vips-1.26.2.dev17.dist-info/RECORD,,