[]previous and next page

svgProcessor

SVG is a vector format: the source is served as it is at any width.

SVG is a vector format: the source is served as it is at any width. A raster source needs a processor that can resize it, so this one refuses it with 415 instead of serving a file at the wrong size.

Import#

ts
import { svgProcessor } from "@shadow-js/dusk/server";

Signature#

ts
const svgProcessor: ImageProcessor