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).
Summary (enhancement)
convert --to dziloses the source MPP and magnification: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 aformat limitation, not a defect. Filing as an enhancement to carry scale
metadata through a DZI conversion (e.g. a custom
<Image>attribute or ametadata sidecar written alongside the
.dzi).IMPORTANT prerequisite
Any such enhancement is only useful if opentile-go's DZI reader reads the
metadata back — otherwise
infoon the output still shows mpp=0/mag=0 and theround-trip gains nothing. So before (or alongside) adding the write side:
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).