Skip to content

Enhancement: carry MPP/magnification through convert --to dzi (needs opentile-go read-back) #29

Description

@cornish

Summary (enhancement)

convert --to dzi loses the source MPP and magnification:

source:      mpp=0.499  magnification=20
dzi output:  mpp=0      magnification=0

The DZI writer emits no MPP/mag, and standard Deep Zoom XML
(<Image><Size Width Height/></Image>) has no slot for them — so this is a
format limitation, not a defect. Filing as an enhancement to carry scale
metadata through a DZI conversion (e.g. a custom <Image> attribute or a
metadata sidecar written alongside the .dzi).

IMPORTANT prerequisite

Any such enhancement is only useful if opentile-go's DZI reader reads the
metadata back
— otherwise info on the output still shows mpp=0/mag=0 and the
round-trip gains nothing. So before (or alongside) adding the write side:

  • Confirm opentile-go can read MPP/magnification from a DZI (custom attribute
    or sidecar). If it can't, this needs a coordinated opentile-go read-side change
    (file an opentile-go issue; read-side is implemented upstream) that agrees on
    the exact attribute/sidecar name and format with the wsitools writer.

Found by

The automated CLI matrix audit (scripts/qa/audit.sh, cross-container scale-metadata check).

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