convert --to bif does not accept --factor/--target-mag, but every other --to target (svs/tiff/ome-tiff/cog-wsi/dicom) does (they route through runConvertFactor to emit a reduced pyramid). Currently --to bif --factor N errors with "not yet supported".
Goal: support convert --to bif --factor {2,4,8,16} / --target-mag, emitting the reduced pyramid as a BIF (row-major level=N IFDs, regenerated EncodeInfo for the new grids, regenerated overview).
Approach: reuse the shared reduce engine (internal/downscale / the runConvertFactor path) to produce reduced levels, then feed them to bifwriter.WritePyramid. The re-encode worker pool already exists for the tile production.
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.
convert --to bifdoes not accept--factor/--target-mag, but every other--totarget (svs/tiff/ome-tiff/cog-wsi/dicom) does (they route throughrunConvertFactorto emit a reduced pyramid). Currently--to bif --factor Nerrors with "not yet supported".Goal: support
convert --to bif --factor {2,4,8,16}/--target-mag, emitting the reduced pyramid as a BIF (row-major level=N IFDs, regenerated EncodeInfo for the new grids, regenerated overview).Approach: reuse the shared reduce engine (
internal/downscale/ therunConvertFactorpath) to produce reduced levels, then feed them tobifwriter.WritePyramid. The re-encode worker pool already exists for the tile production.Part of the BIF writer parity set (bringing
convert --to bifto 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.