weaveImage
▸ weaveImage(options): WeaveImage
Create a new WeaveImage object
Parameters
Returns
WeaveImage
Example
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Help us improve these docs. Take our quick survey.
TypeScript SDK reference
options): WeaveImage
Create a new WeaveImage object
| Name | Type | Description |
|---|---|---|
options | WeaveImageInput | The options for this media type - data: The raw image data as a Buffer - imageType: (Optional) The type of image file, currently only ‘png’ is supported |
WeaveImage
Example
const imageBuffer = fs.readFileSync('path/to/image.png');
const weaveImage = weaveImage({ data: imageBuffer });
Was this page helpful?