メインコンテンツへスキップ

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 WeaveImage オブジェクトを新規作成します

パラメーター

タイプ説明
optionsWeaveImageInputこのメディアタイプのオプションです。- data: Buffer 形式の生の画像データ - imageType: (任意) 画像ファイルのタイプ。現在サポートされているのは 'png' のみです

戻り値

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

定義元

media.ts:28