6 operations for spatial transforms and visual overlays.
rotate
Rotate by any angle. 90/180/270 use a fast path.
Code
/rotate-45-FFFFFF/ # 45 degrees, white background
/rot-90/ # quick 90 degree rotation
flip
Mirror the image. Supports horizontal, vertical, and both.
Code
/flip-h/ # horizontal mirror
/flip-v/ # vertical mirror
/flip-both/ # flip both axes
border
Add a border with optional rounded corners and drop shadow.
Code
/brd-10-FF0000-20/ # 10px red border, 20px radius
/brd-5-000000-10-8-333333-4-4/ # with shadow
watermark (text)
Positioned text overlay with font, color, and rotation controls.
Code
/wmt-Copyright-0.5-br-24-FFFFFF/ # basic watermark
/wmt-Hello+World-0.3-tl-36-FF0000-45/ # with rotation
Positions: tl, tc, tr, cl, c, cr, bl, bc, br
Advanced params (font, x/y offset, shadow) use standard format:
Code
/watermark_text_Sample_font_serif_x_10_shadowcolor_333333/
tiled watermark
Repeat text across the entire image at an angle.
Code
/twm-DRAFT-36-FFFFFF-50-40/ # text-size-color-opacity-spacing
Note: opacity is 0–100 (not 0–1).
SVG overlay
Composite an SVG graphic onto the image.
Code
/svg-PHN2Zy...-10-10-1.5-80/ # data-x-y-scale-opacity
The data parameter accepts base64-encoded SVG.