Skip to content

Commit

Permalink
Merge pull request #514 from girder/better-jp2k-support
Browse files Browse the repository at this point in the history
For the tiff tile source, allow decoding jp2k tiles.
  • Loading branch information
manthey authored Jan 15, 2021
2 parents d5c2ac0 + dce5a1c commit 5f47231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- Better handling of tiff files with JPEG compression and RGB colorspace (#503)
- The openjpeg tile source can decode with parallelism (#511)
- Geospatial tile sources are preferred for geospatial files (#512)
- Support decoding JP2k compressed tiles in the tiff tile source (#514)
>>>>>>> For the tiff tile source, allow decoding jp2k tiles.
### Bug Fixes
- Harden updates of the item view after making a large image (#508)
Expand Down
2 changes: 1 addition & 1 deletion sources/tiff/large_image_source_tiff/tiff_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def getTile(self, x, y):

if (not self._tiffInfo.get('istiled') or
self._tiffInfo.get('compression') not in (
libtiff_ctypes.COMPRESSION_JPEG, 33003, 33005) or
libtiff_ctypes.COMPRESSION_JPEG, 33003, 33005, 34712) or
self._tiffInfo.get('bitspersample') != 8):
return self._getUncompressedTile(tileNum)

Expand Down

0 comments on commit 5f47231

Please sign in to comment.