Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

weaveImage

weaveImage(options): WeaveImage Create a new WeaveImage object

Parameters

NameTypeDescription
optionsWeaveImageInputThe 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

Returns

WeaveImage Example
const imageBuffer = fs.readFileSync('path/to/image.png');
const weaveImage = weaveImage({ data: imageBuffer });

Defined in

media.ts:28