weaveImage
options): WeaveImage
新しい WeaveImage オブジェクトを作成します
パラメータ
| Name | Type | Description |
|---|---|---|
options | WeaveImageInput | このメディアタイプのオプション - data: Buffer 型の生の画像データ - imageType: (任意)画像ファイルの種類。現在は ‘png’ のみサポートされています |
戻り値
WeaveImage
例
TypeScript SDK リファレンス
options): WeaveImage
新しい WeaveImage オブジェクトを作成します
| Name | Type | Description |
|---|---|---|
options | WeaveImageInput | このメディアタイプのオプション - data: Buffer 型の生の画像データ - imageType: (任意)画像ファイルの種類。現在は ‘png’ のみサポートされています |
WeaveImage
例
const imageBuffer = fs.readFileSync('path/to/image.png');
const weaveImage = weaveImage({ data: imageBuffer });