Documentation Index
Fetch the complete documentation index at: https://docs.pixy.art/llms.txt
Use this file to discover all available pages before exploring further.
Supported Modifications
The generate endpoint applies object-level modifications before rendering.| Modification | Text elements | Image elements | SVG / shape elements |
|---|---|---|---|
text | ✅ Yes | ❌ No | ❌ No |
fill | ✅ Yes | ❌ No | ✅ Yes |
stroke | ✅ Yes | ✅ Yes | ✅ Yes |
src | ❌ No | ✅ Yes | ❌ No |
Examples
Replace Text
Text changes keep the original text element’s styling and position. The text box can resize based on the new content, unless that text element is using “autofit” behavior.
Replace An Image Source
Replacement images are always scaled to fill the original image element’s size. If the new image has a different aspect ratio, Pixy keeps the center of the new image in view and crops the outer edges as needed so the layout stays aligned.
Change A Fill Color
Change A Stroke
Stroke changes update the selected element’s outline color. The stroke will only be visible if that element already has a stroke width greater than
0.Combine Multiple Changes On The Same Element
You can send multiple supported fields for one element in the same modification object when they apply to that element type.
Combine Multiple Changes On Different Elements
One request can update multiple elements at once by sending multiple modification objects, each with its own element id.