large-image-source-openslide 1.27.3.dev26__py3-none-any.whl → 1.27.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- large_image_source_openslide/__init__.py +9 -1
- {large_image_source_openslide-1.27.3.dev26.dist-info → large_image_source_openslide-1.27.4.dist-info}/METADATA +3 -3
- large_image_source_openslide-1.27.4.dist-info/RECORD +8 -0
- large_image_source_openslide-1.27.3.dev26.dist-info/RECORD +0 -8
- {large_image_source_openslide-1.27.3.dev26.dist-info → large_image_source_openslide-1.27.4.dist-info}/LICENSE +0 -0
- {large_image_source_openslide-1.27.3.dev26.dist-info → large_image_source_openslide-1.27.4.dist-info}/WHEEL +0 -0
- {large_image_source_openslide-1.27.3.dev26.dist-info → large_image_source_openslide-1.27.4.dist-info}/entry_points.txt +0 -0
- {large_image_source_openslide-1.27.3.dev26.dist-info → large_image_source_openslide-1.27.4.dist-info}/top_level.txt +0 -0
@@ -395,7 +395,15 @@ class OpenslideFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
395
395
|
self._openslide = openslide.OpenSlide(self._largeImagePath)
|
396
396
|
return None
|
397
397
|
tiff_buffer = io.BytesIO()
|
398
|
-
|
398
|
+
ifd = self._tiffinfo['ifds'][images[imageKey]]
|
399
|
+
if (tifftools.Tag.Photometric.value in ifd['tags'] and
|
400
|
+
ifd['tags'][tifftools.Tag.Photometric.value]['data'][0] ==
|
401
|
+
tifftools.constants.Photometric.RGB and
|
402
|
+
tifftools.Tag.SamplesPerPixel.value in ifd['tags'] and
|
403
|
+
ifd['tags'][tifftools.Tag.SamplesPerPixel.value]['data'][0] == 1):
|
404
|
+
ifd['tags'][tifftools.Tag.Photometric.value]['data'][
|
405
|
+
0] = tifftools.constants.Photometric.MinIsBlack
|
406
|
+
tifftools.write_tiff(ifd, tiff_buffer)
|
399
407
|
return PIL.Image.open(tiff_buffer)
|
400
408
|
|
401
409
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: large-image-source-openslide
|
3
|
-
Version: 1.27.
|
3
|
+
Version: 1.27.4
|
4
4
|
Summary: An Openslide tilesource for large_image.
|
5
5
|
Home-page: https://github.com/girder/large_image
|
6
6
|
Author: Kitware, Inc.
|
@@ -17,11 +17,11 @@ 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.27.
|
20
|
+
Requires-Dist: large-image >=1.27.4
|
21
21
|
Requires-Dist: openslide-python >=1.1.0
|
22
22
|
Requires-Dist: tifftools >=1.2.0
|
23
23
|
Provides-Extra: girder
|
24
|
-
Requires-Dist: girder-large-image >=1.27.
|
24
|
+
Requires-Dist: girder-large-image >=1.27.4 ; extra == 'girder'
|
25
25
|
|
26
26
|
An Openslide tilesource for large_image.
|
27
27
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
large_image_source_openslide/__init__.py,sha256=vzEx04RTBTptXUwbEMtcMMqXC2zq8lVtbenxFcdSfI8,18468
|
2
|
+
large_image_source_openslide/girder_source.py,sha256=ntLgOinO7xcO85wFbjx6XEBmTgEtx5cuPZ_K6wXZzqA,1199
|
3
|
+
large_image_source_openslide-1.27.4.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
4
|
+
large_image_source_openslide-1.27.4.dist-info/METADATA,sha256=09a0wc0pTUvOSONWwXUPDHO5sCHuDO_4sEPXcwuPPI4,1048
|
5
|
+
large_image_source_openslide-1.27.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
+
large_image_source_openslide-1.27.4.dist-info/entry_points.txt,sha256=4Z5cf63yeesvHxiR9W1dY3rfz5_V4Ck2xYhPUp4A1qA,196
|
7
|
+
large_image_source_openslide-1.27.4.dist-info/top_level.txt,sha256=wqaQQDWQl9a_l9s6n07tTxfjeEXePtHBhz1np6aUwQE,29
|
8
|
+
large_image_source_openslide-1.27.4.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
large_image_source_openslide/__init__.py,sha256=STCoMhl5ph9UTsnxWZ-jUuH2NlxwpXTanSx37bRcrKc,17972
|
2
|
-
large_image_source_openslide/girder_source.py,sha256=ntLgOinO7xcO85wFbjx6XEBmTgEtx5cuPZ_K6wXZzqA,1199
|
3
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
4
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/METADATA,sha256=peF_VvkoNlXXFld79Hh2xaFYnAuECIvpqrT7pEYnaaM,1066
|
5
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/entry_points.txt,sha256=4Z5cf63yeesvHxiR9W1dY3rfz5_V4Ck2xYhPUp4A1qA,196
|
7
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/top_level.txt,sha256=wqaQQDWQl9a_l9s6n07tTxfjeEXePtHBhz1np6aUwQE,29
|
8
|
-
large_image_source_openslide-1.27.3.dev26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|