?
watermarkImage
Overlay a watermark image onto another image.
mindstudio.watermarkImage({ imageUrl, watermarkImageUrl, corner, paddingPx, widthPx }) → Result
Overlays a watermark image onto another image at a position you set, returning the marked image.
Parameters
imageUrl
string
RequiredURL of the base image
watermarkImageUrl
string
RequiredURL of the watermark image to overlay
corner
string
RequiredCorner position for the watermark placement
top-lefttop-rightbottom-leftbottom-right
paddingPx
number
RequiredPadding from the corner in pixels
widthPx
number
RequiredWidth of the watermark overlay in pixels
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.watermarkImage({ imageUrl: /* ... */, watermarkImageUrl: /* ... */, corner: /* ... */, paddingPx: /* ... */, widthPx: /* ... */ });