Skip to main content
Use these transforms when the CDN URL needs to produce finished UI assets, not just resized photos.
Image with padding, border, and rounded corners

Padding, border, and radius — ?pad=32&border=8&borderColor=%239100ff&radius=36.

Logo before trim=1

Logo before ?trim=1.

Logo after trim=1

Logo after ?trim=1 — transparent borders cropped.

Hero photo visible through a padded logo silhouette

Alpha mask — ?w=960&h=540&fit=cover&mask={logoFileId}&maskBg=%23f8f3ff (mask scaled with aspect ratio preserved).

Canvas presentation

Trim transparent borders

PNG, WebP, and other alpha images often ship with extra transparent padding. Pass trim=1 to crop away fully transparent pixels before resize and encode:
Aliases: 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 reveal maskBg:
For overlaying a second image (logo mark on photo), use Watermarks instead.
Last modified on July 17, 2026