> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ResizeAndPadImage - ComfyUI Built-in Node Documentation

> Complete documentation for the ResizeAndPadImage node in ComfyUI. Learn its inputs, outputs, parameters and usage.

ResizeAndPadImage ノードは、画像を指定された寸法に収まるようにリサイズし、元のアスペクト比を維持します。ターゲットの幅と高さに収まるように画像を比例的に縮小した後、残りのスペースを埋めるためにエッジにパディングを追加します。パディングの色と補間方法をカスタマイズして、パディング領域の外観とリサイズの品質を制御できます。

## 入力

| パラメータ     | 説明                                       | データ型  | 必須 | 範囲                                                                        |
| --------- | ---------------------------------------- | ----- | -- | ------------------------------------------------------------------------- |
| `画像`      | リサイズおよびパディング処理を行う入力画像                    | IMAGE | はい | -                                                                         |
| `ターゲット幅`  | 出力画像の希望幅（デフォルト: 512）                     | INT   | はい | 1 ～ MAX\_RESOLUTION                                                       |
| `ターゲット高さ` | 出力画像の希望高さ（デフォルト: 512）                    | INT   | はい | 1 ～ MAX\_RESOLUTION                                                       |
| `パディング色`  | リサイズ後の画像周囲のパディング領域に使用する色（デフォルト: "white"） | COMBO | はい | "white"<br />"black"                                                      |
| `補間`      | 画像のリサイズに使用する補間方法（デフォルト: "area"）          | COMBO | はい | "area"<br />"bicubic"<br />"nearest-exact"<br />"bilinear"<br />"lanczos" |

## 出力

| 出力名  | 説明                    | データ型  |
| ---- | --------------------- | ----- |
| `画像` | リサイズおよびパディング処理された出力画像 | IMAGE |

> このドキュメントは AI によって生成されました。エラーを見つけた場合や改善のご提案がある場合は、ぜひ貢献してください！ [GitHub で編集](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ResizeAndPadImage/ja.md)

***

**Source fingerprint (SHA-256):** `01566327d46043d1ff9ce404b4df8f49e853d0b01d07cc189fb843157dac1cac`
