Skip to content

BIF parity: carry ICC profile + fix colour-space framing for --to bif #14

Description

@cornish

convert --to bif does not carry the source ICC profile, and verbatim/re-encoded Aperio APP14/RGB JPEG tiles sit in a Photometric=YCbCr-declared BIF — some readers may render off-colour. The TIFF-family writers carry ICC and handle photometric framing.

Goals:

  • Carry the source ICC profile into the BIF (real DP 200 stores ICC on the level-0 pyramid IFD, tag 34675).
  • Resolve the colour-space framing: set Photometric per the actual tile JPEG (RGB/APP14 vs YCbCr), or normalise on re-encode, so colours are correct across readers.

Part of the BIF writer parity set (bringing convert --to bif to parity with the other write targets). Context: internal/tiff/bifwriter + cmd/wsitools/convert_bif.go; cleanup backlog in docs/superpowers/specs/2026-06-17-bif-writer-feasibility.md §10. Note: opentile-go mis-renders BIF output until opentile-go#57 lands, so verify with bio-formats/QuPath, not opentile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions