Bildwerk
svg rasterize
Runs the svg-sanitize allowlist first (scripts, external references, foreignObject and entity declarations removed, only local #fragment references and raster data: images kept), then renders with librsvg 2.63 inside libvips/sharp in a resource-limited child process: the vector graphic is rendered at the density that matches each target width, so large sizes stay sharp. Each size gives width and/or height; the other side follows the intrinsic aspect ratio (from width/height or viewBox), with.
POST https://bild.halowerk.com/v1/svg-rasterizeInputs
| Field | Type | Required | Description |
|---|---|---|---|
| svg | string | No | SVG markup. |
| svg_url | string | No | Public URL of the SVG (at most 5 MB). |
| sizes | array | Yes | Target sizes, e.g. [{"width":64},{"width":512}]. |
| format | string | No | |
| fit | string | No | |
| background | string | No | Hex colour or "transparent" (JPEG uses white when transparent). |
| quality | integer | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"sizes"
],
"properties": {
"svg": {
"type": "string",
"minLength": 10,
"maxLength": 5000000,
"description": "SVG markup."
},
"svg_url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Public URL of the SVG (at most 5 MB)."
},
"sizes": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"width": {
"type": "integer",
"minimum": 1,
"maximum": 8192
},
"height": {
"type": "integer",
"minimum": 1,
"maximum": 8192
}
}
},
"description": "Target sizes, e.g. [{\"width\":64},{\"width\":512}]."
},
"format": {
"type": "string",
"enum": [
"png",
"webp",
"jpeg",
"avif"
],
"default": "png"
},
"fit": {
"type": "string",
"enum": [
"contain",
"cover",
"fill"
],
"default": "contain"
},
"background": {
"type": "string",
"maxLength": 11,
"default": "transparent",
"description": "Hex colour or \"transparent\" (JPEG uses white when transparent)."
},
"quality": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 90
}
}
}Published input example
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 50\"><rect width=\"100\" height=\"50\" fill=\"#0243a9\"/></svg>",
"sizes": [
{
"width": 32
},
{
"width": 512
}
],
"format": "png"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Bildwerk0.01 USDC
address plate blur
POSThttps://bild.halowerk.com/v1/address-plate-blurThe photo is read with Tesseract 5.3.4 (German + English, word boxes) at two scales and in sparse-text and block mode; small bright plaques with 1–5 dark characters (typical house-number signs) are additionally cut out and read one by one,
- Bildwerk0.003 USDC
ai disclosure metadata
POSThttps://bild.halowerk.com/v1/ai-disclosure-metadataChecks JPEG, PNG and WebP files for AI disclosure metadata: XMP DigitalSourceType and the IPTC Photo Metadata 2025.1 AI fields, C2PA/JUMBF stores (signatures are not validated), PNG text chunks and EXIF Software/UserComment, and returns a s
- Bildwerk0.008 USDC
animation to video
POSThttps://bild.halowerk.com/v1/animation-to-videoReads frame count, size, loop count and total duration from the file structure, then encodes with ffmpeg 6.1 in a child process under prlimit (no shell, empty environment, only the file protocol): GIF and APNG are demuxed natively, animated