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