> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Recraft Vectorize Image - ComfyUI 組み込みノードのドキュメント

> ラスタ画像をベクターSVG形式に変換するRecraftパートナー・ノード

<img src="https://mintcdn.com/dripart/5003JSxULDwNImme/images/built-in-nodes/api_nodes/recraft/recraft-vectorize-image.jpg?fit=max&auto=format&n=5003JSxULDwNImme&q=85&s=5d51a1b8e3e0147a608b40a2b63fd03b" alt="ComfyUI 組み込み Recraft Vectorize Image ノード" width="1506" height="532" data-path="images/built-in-nodes/api_nodes/recraft/recraft-vectorize-image.jpg" />

Recraft Vectorize Image ノードは、Recraft の API を使用して、ラスタ画像（写真、PNG、JPEG など）をベクター SVG 形式に変換します。

## パラメーター

### 基本パラメーター

| パラメーター | 型  | デフォルト値 | 説明              |
| ------ | -- | ------ | --------------- |
| image  | 画像 | -      | ベクター形式に変換する入力画像 |

### 出力

| 出力  | 型    | 説明                                                   |
| --- | ---- | ---------------------------------------------------- |
| SVG | ベクター | 変換された SVG ベクターグラフィック。保存するには SaveSVG ノードに接続する必要があります。 |

## 使用例

<Card title="Recraft Text to Image ワークフローの例" icon="book" href="/ja/tutorials/partner-nodes/recraft/recraft-text-to-image">
  Recraft Text to Image ワークフローの例
</Card>

## ソースコード

\[ノードのソースコード（2025-05-03 更新）]

```python theme={null}

class RecraftVectorizeImageNode:
    """
    Generates SVG synchronously from an input image.
    """

    RETURN_TYPES = (RecraftIO.SVG,)
    DESCRIPTION = cleandoc(__doc__ or "")  # Handle potential None value
    FUNCTION = "api_call"
    API_NODE = True
    CATEGORY = "api node/image/Recraft"

    @classmethod
    def INPUT_TYPES(s):
        return {
            "required": {
                "image": (IO.IMAGE, ),
            },
            "optional": {
            },
            "hidden": {
                "auth_token": "AUTH_TOKEN_COMFY_ORG",
            },
        }

    def api_call(
        self,
        image: torch.Tensor,
        auth_token=None,
        **kwargs,
    ):
        svgs = []
        total = image.shape[0]
        pbar = ProgressBar(total)
        for i in range(total):
            sub_bytes = handle_recraft_file_request(
                image=image[i],
                path="/proxy/recraft/images/vectorize",
                auth_token=auth_token,
            )
            svgs.append(SVG(sub_bytes))
            pbar.update(1)

        return (SVG.combine_all(svgs), )
```
