Skip to content
HomePagesHomePages template kit

presetGeometryMatches

Whether a format's `preset` provenance tag is truthful.

Whether a format’s preset provenance tag is truthful. Untagged formats pass; a tagged one passes only when its geometry — width, height, dpi, bleed — exactly matches the library entry the tag names. Identity fields are NOT compared: re-labeling or re-categorizing a preset keeps the tag, because the category is browsing metadata, not geometry.

Import from @homepages/template-kit.

function presetGeometryMatches(format: ImageFormat | DocumentFormat): boolean
Name Type Required Description
format ImageFormat | DocumentFormat required

boolean