Export
Control the output image format, quality, and resolution.
Usage
json
{
"settings": {
"export": {
"format": "png",
"quality": 90,
"scale": 2
}
}
}Properties
| Property | Type | Range | Default | Description |
|---|---|---|---|---|
format | string | png, jpg, webp | webp | Output image format |
quality | number | 10 - 100 | 85 | Image quality (lossy formats) |
scale | number | 1 - 4 | 1 | Resolution multiplier |
Formats
PNG
- Lossless compression
- Supports transparency
- Larger file sizes
- Best for graphics with sharp edges
json
{
"settings": {
"export": {
"format": "png"
}
}
}JPEG
- Lossy compression
- Smaller file sizes
- No transparency
- Best for photographs
json
{
"settings": {
"export": {
"format": "jpg",
"quality": 85
}
}
}WebP
- Modern format with excellent compression
- Supports transparency
- Smaller than PNG, better quality than JPEG
- Recommended default
json
{
"settings": {
"export": {
"format": "webp",
"quality": 90
}
}
}Resolution Scale
The scale property multiplies the output resolution:
| Scale | Output |
|---|---|
| 1 | 1x (standard) |
| 2 | 2x (retina) |
| 3 | 3x (high-DPI) |
| 4 | 4x (ultra-high) |
Note
Higher scales increase render time and response size.
Examples
High Quality PNG
json
{
"settings": {
"export": {
"format": "png",
"scale": 2
}
}
}Optimized for Web
json
{
"settings": {
"export": {
"format": "webp",
"quality": 80,
"scale": 1
}
}
}Print Quality
json
{
"settings": {
"export": {
"format": "png",
"scale": 4
}
}
}