> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-3071-org-scoped-api-keys.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# weaveImage

> TypeScript SDK リファレンス

> **weaveImage**(`options`): [`WeaveImage`](../interfaces/weaveimage)

新しい WeaveImage オブジェクトを作成します

定義元: [src/media.ts:28](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/media.ts#L28)

<div id="parameters">
  ## パラメーター
</div>

<div id="options">
  ### options
</div>

`WeaveImageInput`

このメディアタイプのオプションです

* data: Buffer 形式の生の画像データ
  * imageType: (任意) 画像ファイルのタイプ。現在サポートされているのは 'png' のみです

<div id="returns">
  ## 戻り値
</div>

[`WeaveImage`](../interfaces/weaveimage)

<div id="example">
  ## 例
</div>

```ts twoslash theme={null}
// @noErrors
const imageBuffer = fs.readFileSync('path/to/image.png');
const weaveImage = weaveImage({ data: imageBuffer });
```
