



Canvas presentation
| Param | Value | Default |
|---|---|---|
pad | Equal padding around the image (0-1000). | 0 |
border | Equal border (0-400). | 0 |
borderColor | Hex border colour with optional alpha. | #000000 |
radius (r) | Rounded-corner radius in pixels. | 0 |
bg | Hex background for rotation/padding. | transparent |
rotate (rot) | Rotate by degrees (-360 to 360). | 0 |
flip / flop | Vertical / horizontal mirror. | false |
Trim transparent borders
PNG, WebP, and other alpha images often ship with extra transparent padding. Passtrim=1 to crop away fully transparent pixels before resize and encode:
trimAlpha=1, trim-alpha=1. Trim runs after EXIF auto-orient and before smart crop / resize.
Alpha masks
Apply a mask from a stored file ID or HTTPS URL. The mask is scaled to fit inside the output canvas (aspect ratio preserved, centred). Transparent mask areas revealmaskBg: