Skip to content

Add LZW / uncompressed (and Deflate) tile encoders #18

Description

@cornish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions