Render Product Images API
Last updated
Was this helpful?
Last updated
Was this helpful?
To get the images of a specific product, you need to target a specific product using the product_uuid
parameter.
You may add more template groups inside a product.
Template groups allow you to have more template styles per product, for example: Summer photoshoot session, Winter photoshoot session.
Easily switch between template groups you are rendering per API call by targeting their template_group_uuid
.
Provided artworks can be attached to any template from a targeted template group.
This is what we call template groups mapping.
You can create any number of artwork inputs and attach them to any template from the template group and its smart objects.
From this image example, artwork_main
will be used in the Render Product Images API
The request would look something like this:
You can provide any number of artworks, you can name them as you want. And you can do something like this:
The number of artworks could potentially slow the rendering performance. The fewer artworks used, the faster the response.
Besides artworks, you can also attach colors
.
From this image example, we've added color_main
only to the last template in a template group because we want to apply the color only to that template image when getting the rendered images.
The request would look something like this:
As we created our flow while mapping, this color
will only be attached to the last template. The first and the second templates will only get the provided artwork_main
.
When defining this optional parameter in your request, the response will return the same value.
This parameter is used to help recognize the request you sent with the label.
By default, all the images are returned in PNG format.
But sometimes, for example, you want to get more optimized images for the web.
By providing some of the following values: jpg, png, webp
you can control what image format you want from our API.
Same as image_format, you can tell our API if you need images of a specific size.
All the images will be returned in high resolution, but sometimes you need smaller ones.
Provide export_options.image_size = 720
to get images with a 720px width.
The provided value will define the image's width. The height will auto-scale.
Our API exports images as binary by default, causing the browser to download them automatically.
To display the images in the browser instead of downloading it, set export_options.mode = "view"
.
e3a9a550-42f1-4cbe-bc33-24b859a13467
4f21ac10-67ff-42f4-9362-84a7498c8a9b
Key-value map of color inputs using hex codes
{"color_primary":"#FF5733"}
fall_collection_render