Skip to content

Commit

Permalink
Merge pull request #87 from bgilbert/czi-zstd
Browse files Browse the repository at this point in the history
formats/zeiss: document zstd compression
  • Loading branch information
bgilbert authored May 21, 2024
2 parents 4d505d8 + 3713921 commit 842f830
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions formats/zeiss/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ size in the subblock's level.

Pixel data may be compressed in any of several formats. JPEG XR is common.
Uncompressed 24 bpp or 48 bpp pixel data is also possible, as well as pixel
data compressed with lossless [Zstandard][zstd] compression. The format
also permits JPEG and LZW compression, though these do not appear to be
common and OpenSlide does not support them.
data compressed with lossless [Zstandard][zstd] compression. CZI's
Zstandard support comes in two flavors, zstd0 and zstd1, with the latter
prefixed by an uncompressed header typically three bytes long. A flag in
that header indicates the presence of HiLo packing, in which the low bytes
of 16-bit color samples are packed together in the first half of the
uncompressed buffer and the high bytes in the second half. CZI also permits
JPEG and LZW compression, though these do not appear to be common and
OpenSlide does not support them.

CZI files can embed arbitrary named attachments, which might be JPEG images,
nested CZI files, or other metadata. The `Label` and `SlidePreview`
Expand Down

0 comments on commit 842f830

Please sign in to comment.