Skip to main content

Product Images

Using WebGL SSR APIs, product images of customized products could be generated on the fly just by requesting them.

Request images using a short URL​

Useful for production sites, a product image could be requested just by defining the recipe Id and the desired view.

URL Example​

https://cdn-webgl-ssr-prod.fluidconfigure.com/snapshot/recipe/77429274/image/Front.jpg

URL Components​

ComponentRequiredValueNotes
HostYeshttps://cdn-webgl-ssr-prod.fluidconfigure.com
Product ReferenceYes/recipe/{recipeId}
Requested ResourceYes/image
Selected ViewYes/{viewName}viewName could be the name of any supported view
Image FormatYes.{format}The supported formats are jpg, jpeg and png

Supported Query Parameters​

ParameterRequiredValueDefault ValueNotes
Image ScalingNoscale={number}1The scaling size could go from 0.01 to 5. Exceeding the 2000px width or height could lead to errors or bad performance
Image WidthNowidth={number}Product widthExceeding the 2000px width could lead to errors or bad performance
Image HeightNoheight={number}Product heightExceeding the 2000px height could lead to errors or bad performance

Request images using a verbose URL​

Useful for development purposes or an advanced use, a product image could be requested by defining, and in some cases overwriting, key properties of a product.

URL Example​

http://cdn-webgl-ssr-prod.fluidconfigure.com/snapshot?recipe=77429274&customer=1525&product=21956&camera=Front

URL Components​

ComponentRequiredValueNotes
HostYeshttps://cdn-webgl-ssr-prod.fluidconfigure.com
Requested ResourceYes/snapshot

Supported Query Parameters​

ParameterRequiredValueDefault ValueNotes
Customer ReferenceYescustomer={customerId}
Product ReferenceYesproduct={productId}
Recipe ReferenceYesrecipe={recipeId}
Selected ViewYescamera={viewName}viewName could be the name of any supported view
Product WorkflowNoworkflow={workflowName}prod
Product EnvironmentNoenvironment={environmentName}prod
WebGL EnvironmentNowebglEnv={webglEnv}prod
Image FormatNoformat={formatExtension}jpgThe supported formats are jpg, jpeg and png
Image ScalingNoscale={number}1The scaling size could go from 0.01 to 5. Exceeding the 2000px width or height could lead to errors
Image WidthNowidth={number}Product widthExceeding the 2000px width could lead to errors or bad performance
Image HeightNoheight={number}Product heightExceeding the 2000px height could lead to errors or bad performance
Recipe OverridesNooverrides={string}Allow overrides in CAs and AVs passing them in the url with the following formats:
?overrides=107612:206625,107613:206782,110546:209249,110549:JJ
?overrides=color_palette:206625,sleeve_color:206782,110546:209249,110549:JJ
allowing the following combinations:
caId/caVendorId/alias:avId/avVendorId/text,...
with multiple permutations:
caId:avId,caId:avVendorId,alias:text&...
Hooks dataNohooks={string}The hooks parameter value will be shared with the hooks functions as parameter