Skip to content

Commit

Permalink
Merge pull request #958 from girder/reduce-tiff-restriction
Browse files Browse the repository at this point in the history
Reduce a restriction on reading some tiff files.
  • Loading branch information
manthey authored Sep 7, 2022
2 parents 2f4ed61 + c5b9902 commit a05f9b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Reduce rest calls to get settings ([953](../../pull/953))
- Add an endpoint to delete all annotations in a folder ([954](../../pull/954))
- Support relabeling axes in the multi source ([957](../../pull/957))
- Reduce a restriction on reading some tiff files ([958](../../pull/958))

### Bug Fixes
- Harden adding images to the item list ([955](../../pull/955))
Expand Down
3 changes: 1 addition & 2 deletions sources/tiff/large_image_source_tiff/tiff_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ def _validate(self): # noqa
# should only be done if necessary, which would require the conversion
# job to check output and perform subsequent processing as needed.
if (not self._tiffInfo.get('samplesperpixel') or
(self._tiffInfo.get('samplesperpixel') != 1 and
self._tiffInfo.get('samplesperpixel') < 3)):
self._tiffInfo.get('samplesperpixel') < 1):
raise ValidationTiffException(
'Only RGB and greyscale TIFF files are supported')

Expand Down

0 comments on commit a05f9b9

Please sign in to comment.