메인 콘텐츠로 건너뛰기

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-feature-automate-reference-docs-generation.mintlify.app/llms.txt

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

weaveDocs
weave / weaveImage

Function: weaveImage()

weaveImage(options): WeaveImage
새 WeaveImage 객체 생성

매개변수

options: WeaveImageInput 이 미디어 타입에 대한 옵션
  • data: The raw image data as a Buffer
  • imageType: (Optional) The type of image file, currently only ‘png’ is supported

반환

WeaveImage

예시

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

정의 위치

media.ts:28