Re-tiling a lossless source (an LZW/uncompressed ImageScope export, e.g. via convert --tile-size differing from the source tiling) currently errors when no --codec is given, because there is no encoder for the source codec — wsitools only encodes JPEG / JPEG 2000 / JPEG XL / AVIF / WebP / HTJ2K (+ PNG).
reencodeCodecFor (cmd/wsitools/convert_shared.go) preserves the source's compression family on a forced re-encode, but for a lossless source it has nothing to fall back to and returns an error asking for an explicit --codec.
Adding LZW / uncompressed (and Deflate) tile encoders would let reencodeCodecFor preserve a lossless source's compression family (instead of erroring) when re-tiling, keeping the operation lossless.
Context: design docs/superpowers/specs/2026-06-27-convert-tile-size-design.md (the --tile-size feature); decision recorded there as a follow-up.
🤖 Generated with Claude Code
Re-tiling a lossless source (an LZW/uncompressed ImageScope export, e.g. via
convert --tile-sizediffering from the source tiling) currently errors when no--codecis given, because there is no encoder for the source codec — wsitools only encodes JPEG / JPEG 2000 / JPEG XL / AVIF / WebP / HTJ2K (+ PNG).reencodeCodecFor(cmd/wsitools/convert_shared.go) preserves the source's compression family on a forced re-encode, but for a lossless source it has nothing to fall back to and returns an error asking for an explicit--codec.Adding LZW / uncompressed (and Deflate) tile encoders would let
reencodeCodecForpreserve a lossless source's compression family (instead of erroring) when re-tiling, keeping the operation lossless.Context: design
docs/superpowers/specs/2026-06-27-convert-tile-size-design.md(the--tile-sizefeature); decision recorded there as a follow-up.🤖 Generated with Claude Code