Post-processing operation to overlay text on an image
Supports query parameters: text, label, fontSize, fontWeight, fontFamily, textColor, fill, textStroke, textStrokeWidth, textPadding, textAnchor, anchor, tx, ty, textAutoColor (boolean), textUppercase (boolean)
const op = new OverlayText();// Use with params: ?text=Hello&fontSize=20&textColor=red Copy
const op = new OverlayText();// Use with params: ?text=Hello&fontSize=20&textColor=red
Create a new text overlay operation
Optional identifier for debugging
Optional
Unique identifier or descriptive name
Execute the post-processing operation
Canvas 2D rendering context
Query parameters from the image request
Post-processing operation to overlay text on an image
Supports query parameters: text, label, fontSize, fontWeight, fontFamily, textColor, fill, textStroke, textStrokeWidth, textPadding, textAnchor, anchor, tx, ty, textAutoColor (boolean), textUppercase (boolean)
Example