PeachImage
PeachImage.Formats.Gif.GifPassthroughInfo
GifPassthroughInfo.MinCodeSize Property
The frame’s LZW minimum code size byte. GIF’s LZW starts codes at MinCodeSize + 1 bits with a
Clear code of 1 << MinCodeSize, while PDF’s /LZWDecode filter is fixed at a 9-bit
start and Clear code 256 — the two are only byte-for-byte compatible when MinCodeSize == 8.
Many real-world small-palette GIFs use a smaller value; passing LzwData through to
/LZWDecode for those would silently misinterpret the bitstream from the first code onward.
Callers must check this before treating LzwData as PDF-`/LZWDecode`-compatible.
public byte MinCodeSize { get; init; }