Interface: ApiImageConfig
Configuration for image generation flows of Mimeeq API
Properties
imageConfigurations?
optional
imageConfigurations:object
Configuration object allows to specify different settings for various image generation contexts
ar?
optional
ar:ApiImageConfigSettings
arModular?
optional
arModular:ApiImageConfigSettings
basket?
optional
basket:ApiImageConfigSettings
basketModular?
optional
basketModular:ApiImageConfigSettings
favourites?
optional
favourites:ApiImageConfigSettings
favouritesModular?
optional
favouritesModular:ApiImageConfigSettings
finishEventModular?
optional
finishEventModular:ApiImageConfigSettings
modularLastSession?
optional
modularLastSession:ApiImageConfigSettings
pdf?
optional
pdf:ApiImageConfigSettings
pdfModular?
optional
pdfModular:ApiImageConfigSettings
postprocessImage()?
optional
postprocessImage: (base64
,extension
,dimensions
) =>Promise
<Nullable
<string
>>
The primary purpose of the postprocessImage
function is to apply post-processing effects and transformations to generated images.
You can use this function to add watermarks, adjust dimensions, apply filters, or apply any other custom modifications to generated images.
The postprocessImage
function provides you with granular control over the image generation process, allowing for precise customization according to specific requirements.
Keep in mind it affects only images of the product generated from 3d canvas. In case of materials, 2d images, galleries etc. no transformation is done
Parameters
• base64: string
A base64-encoded string representing the generated image
• extension: string
The file extension of the generated image (e.g., 'png', 'jpg')
• dimensions: Dimensions
An object containing the dimensions of the generated image, including width and height
Returns
String containing base64 representation of the image to use or null if no image