Skip to main content

Supported Modifications

The generate endpoint applies object-level modifications before rendering.

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.
Text resize placeholder

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.