SVG Conversion¶
The SVG importer is the tool-agnostic path. It is especially useful for Canva exports, but it is not Canva-specific in the architecture.
Open It¶
Inputs It Accepts¶
You can import:
- one SVG file
- a folder of SVG files
- a ZIP of SVG files
The browser app and the CLI both feed the same core importer and pipeline.
Why This Matters For Canva¶
Canva’s multi-page SVG export becomes a set of per-page SVGs, often packaged as a ZIP. all2html can treat those files as artboards and run them through the same HTML pipeline as every other surface.
Core Workflow¶
CLI¶
all2html import svg export.zip -o output/
all2html import svg export.zip -o output/ --format standalone
all2html import svg export.zip -o output/ --format svelte
all2html import svg export.zip -o output/ --format react
Browser App¶
Public page: svg-converter
The browser app is fully client-side and accepts drag-and-drop SVG or ZIP input.
Optional JSON/JSONC config can set shared settings such as googleFonts. Font loading follows the same modes as the other exporters: none, import, or link.
Naming Rules¶
Responsive grouping is driven by filenames. Preferred examples:
story--640.svgstory--960.svgstory--dynamic.svgstory--image.svg
Colon-style names such as story:640 are still accepted where that convention already exists.
Live Text And Raster Backgrounds¶
The importer tries to recover live HTML text when the SVG text can be mapped safely. The rest of the SVG is rasterized into ai2html-style PNG or JPG backgrounds by default.
That means:
- text can stay editable/live when possible
- complex vector effects can still render correctly as background imagery
--imagenaming or image-only settings can force a fully rasterized result
Formats¶
The SVG importer supports the full emitter surface:
- HTML
- Standalone HTML
- Svelte
- React
Good Uses¶
- Canva export translation
- generic SVG-to-web conversion
- multi-file responsive graphics
- one-off visual tests through the browser app
Screenshot placeholder Crop the dropzone after upload with the selected format, warnings list, and generated bundle summary visible.