Skip to content

Commit

Permalink
Merge pull request #510 from girder/image-modes
Browse files Browse the repository at this point in the history
Fix an issue when a tile wasn't in an expected color mode
  • Loading branch information
manthey authored Jan 15, 2021
2 parents 2b70de7 + d1be422 commit 91c557f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Better handling of tiff files with JPEG compression and RGB colorspace (#503)

### Bug Fixes
- Harden updates of the item view after making a large image
- Harden updates of the item view after making a large image (#508)

## Version 1.3.2

Expand Down
2 changes: 1 addition & 1 deletion large_image/tilesource/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _imageToNumpy(image):
if not isinstance(image, PIL.Image.Image):
image = PIL.Image.open(BytesIO(image))
if image.mode not in ('L', 'LA', 'RGB', 'RGBA'):
image.convert('RGBA')
image = image.convert('RGBA')
mode = image.mode
image = numpy.asarray(image)
else:
Expand Down

0 comments on commit 91c557f

Please sign in to comment.