Skip to main content

render-design-preview-with-mockup

This task prepares a preview for the specified artifact (design) using a mockup.

note

The rendering is performed based on the settings specified in this task. The rendering settings configured in the editor will be ignored.

Parameters

  • mockupId (string): The ID of the mockup in Asset Storage.
  • previewWidth (number): The width of the preview image in pixels.
  • previewHeight (number): The height of the preview image in pixels.
  • previewFormat (string): The output file format for the preview image, either Jpeg or Png.
  • visualizePrintAreas (boolean): (optional) If true, indicates that design print area bounds should be visualized. The default value is true.

These parameters support argument interpolation following the common rules.

Example

{
"description": "Prepare preview of design file with mockup",
"name": "render-design-preview-with-mockup",
"type": "render-design-preview-with-mockup",
"inputArtifacts": [
"design"
],
"parameters": {
"mockupId": "6565dac9c2807e72a406fb7a",
"previewWidth": 500,
"previewHeight": 500,
"previewFormat": "Jpeg"
},
"outputArtifacts": [
"preview"
]
}
Was this page helpful?