large-image-source-openslide 1.27.3.dev26__tar.gz → 1.27.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (15) hide show
  1. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/PKG-INFO +1 -1
  2. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide/__init__.py +9 -1
  3. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/PKG-INFO +1 -1
  4. large-image-source-openslide-1.27.4/large_image_source_openslide.egg-info/requires.txt +6 -0
  5. large-image-source-openslide-1.27.3.dev26/large_image_source_openslide.egg-info/requires.txt +0 -6
  6. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/LICENSE +0 -0
  7. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/README.rst +0 -0
  8. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide/girder_source.py +0 -0
  9. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/SOURCES.txt +0 -0
  10. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/dependency_links.txt +0 -0
  11. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/entry_points.txt +0 -0
  12. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/large_image_source_openslide.egg-info/top_level.txt +0 -0
  13. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/pyproject.toml +0 -0
  14. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/setup.cfg +0 -0
  15. {large-image-source-openslide-1.27.3.dev26 → large-image-source-openslide-1.27.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-openslide
3
- Version: 1.27.3.dev26
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.
@@ -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
- tifftools.write_tiff(self._tiffinfo['ifds'][images[imageKey]], tiff_buffer)
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.dev26
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.
@@ -0,0 +1,6 @@
1
+ large-image>=1.27.4
2
+ openslide-python>=1.1.0
3
+ tifftools>=1.2.0
4
+
5
+ [girder]
6
+ girder-large-image>=1.27.4
@@ -1,6 +0,0 @@
1
- large-image>=1.27.3.dev26
2
- openslide-python>=1.1.0
3
- tifftools>=1.2.0
4
-
5
- [girder]
6
- girder-large-image>=1.27.3.dev26