Doc previews use a simple styled canvas (
trim, pad, bg, border) without rounded corners. For production vector output, request format=svg&vectorize=gradient on a trimmed icon with a solid background — avoid tracing decorative borders into the SVG.
Logo on a lavender canvas — trim=1&pad=48&bg=f8f3ff&border=8.

Monochrome logo variant — sat=0 on a dark canvas with purple border.
Raster to SVG (vectorize)
Setformat=svg and enable tracing with vectorize=gradient (or trace=1). The CDN runs resize, crop, and adjustments first, rasterizes internally, then traces to SVG paths.
Combine with sizing and canvas params:
SVG sources (sanitize & rasterize)
When the stored file is SVG, Convertly can rasterize it to WebP, AVIF, JPEG, or PNG. Before processing, unsafe markup is stripped by default — scripts, event handlers,foreignObject, and javascript: links.
Passthrough: a bare SVG URL with no transform params redirects to a signed download of the original file. Add at least one transform (
w, format, preset, etc.) to rasterize.
To re-trace an existing SVG, use format=svg&vectorize=gradient on the SVG source.
Recolouring SVGs
svgColor — path recolour before rasterize
Set svgColor=RRGGBB (or svg-color, # optional) on SVG sources. The CDN replaces explicit fill and stroke values — not none or url(...) — then rasterizes to your requested format.
image/svg+xml. Multi-fill artwork or gradient logos flatten to one colour. Raster sources (PNG/WebP) ignore svgColor.

Single-colour SVG source — original #374151 fill on white (pad=48&bg=ffffff).

svgColor=9000ff — brand purple.

svgColor=0d9488 — teal accent.

svgColor=e11d48 — coral accent.

Original (left) vs ?svgColor=9000ff (right) — same SVG, one URL param.
svgColor with trim, pad, and bg for app icons and nav marks without editing the source file:
Other approaches
Palette extraction for SVG sources works via CDN
?palette=json (after rasterize) or POST /api/images/analyze. See Smart cropping & image analysis for swatch fields and palette previews.