large-image-source-openslide 1.27.3.dev28__tar.gz → 1.27.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/PKG-INFO +1 -1
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide/__init__.py +9 -1
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/PKG-INFO +1 -1
- large-image-source-openslide-1.27.4/large_image_source_openslide.egg-info/requires.txt +6 -0
- large-image-source-openslide-1.27.3.dev28/large_image_source_openslide.egg-info/requires.txt +0 -6
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/LICENSE +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/README.rst +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide/girder_source.py +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/SOURCES.txt +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/dependency_links.txt +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/entry_points.txt +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/top_level.txt +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/pyproject.toml +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/setup.cfg +0 -0
- {large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/setup.py +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
|
|
File without changes
|
{large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/README.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{large-image-source-openslide-1.27.3.dev28 → large-image-source-openslide-1.27.4}/pyproject.toml
RENAMED
File without changes
|
File without changes
|
File without changes
|