Skip to main content

File extensions

DSVG supports two equivalent source suffixes and one compiled output:

ExtensionRole
.dsvgDynamic source — prefer when unresolved templates or unapplied layout would confuse generic SVG tools
.d.svgDynamic source — prefer when baked geometry/content still previews usefully as ordinary SVG
.svgCompiled static output

Both source formats contain the same XML document model. Serve either with image/svg+xml when rendering; .dsvg may need an explicit MIME mapping on some servers.

import { isDsvgFilename, toCompiledSvgFilename } from '@deckify/dsvg';

isDsvgFilename('badge.dsvg'); // true
isDsvgFilename('badge.d.svg'); // true
isDsvgFilename('badge.svg'); // false
toCompiledSvgFilename('badge.dsvg'); // 'badge.svg'