Skip to content
Tutorial

VectoSolve CLI:コマンドラインから画像をSVGに変換

VectoSolve公式CLIを使えば、ターミナルから直接画像のベクター化、背景除去、アップスケール、ロゴ生成が可能です。フォルダ全体のバッチ処理、CI/CDパイプラインとの統合、デザインワークフローの自動化 — すべてコマンドラインから実行できます。

Robin Monteiro2026年3月16日約8分で読めます
Use this article with an AI assistant:
.md
VectoSolve CLI:コマンドラインから画像をSVGに変換
R
Robin Monteiro

Founder of VectoSolve

Self-taught developer, founder and sole developer of VectoSolve since 2024. He builds the conversion engine and the cutting, embroidery and 3D printing exports.

How this article was made: drafted with AI assistance, then edited and fact-checked before publication. About the author

Image vectorizationCutting machine filesEmbroidery filesSVG
Free previewNo signupFull-quality output

vectosolve CLIは、VectoSolveのAI画像処理をターミナルに直接提供します。画像をSVGに変換、背景を除去、アップスケール、ロゴを生成 — ブラウザを開く必要はありません。

インストール

bash
npm install -g vectosolve

またはnpxで直接使用(インストール不要):

bash
npx vectosolve convert photo.png

セットアップ

bash
# APIキーを保存(https://vectosolve.com/developers で取得)
vectosolve auth --key vs_xxx

# または環境変数を使用
export VECTOSOLVE_API_KEY=vs_xxx

コマンド

convert — 画像からSVGへ

あらゆるラスター画像(PNG、JPG、WebP)をクリーンなSVGベクター形式に変換します。

bash
vectosolve convert photo.png                    # 出力: photo.svg
vectosolve convert photo.png -o output.svg      # カスタム出力パス
vectosolve convert --url https://example.com/image.png  # URLから

料金:画像1枚あたり$0.20

remove-bg — 背景除去

あらゆる画像から背景を除去します。透過PNGを返します。

bash
vectosolve remove-bg product.jpg                # 結果URLを表示
vectosolve remove-bg product.jpg -o clean.png   # ファイルに保存

料金:画像1枚あたり$0.07

upscale — AIアップスケール

低解像度の画像をAIでアップスケールします。

bash
vectosolve upscale small.png -o large.png

料金:画像1枚あたり$0.15

テキスト説明からSVGロゴを生成します。

bash
vectosolve logo "モダンなテックスタートアップのロゴ"
vectosolve logo "コーヒーショップのロゴ" -s icon -n 4 -o ./logos/
vectosolve logo "アブストラクトアート" -c "#0090ff,#1cb721" -m recraftv3

オプション:

  • -s, --style — ロゴスタイル(vector_illustration、icon、line_art...)
  • -m, --model — AIモデル(最高品質はrecraftv3、recraftv2)
  • -c, --colors — ブランドカラー(カンマ区切りのhex値)
  • -n, --num — バリエーション数(1、2、または4)
  • -o, --output — 出力ディレクトリ

料金:ロゴ1つあたり$0.40(recraftv3)または$0.25(recraftv2)

A Full Year of Conversions for $49

Starter Annual: 25 conversions every month, $49 for the whole year. That is about $4.08 a month · Cancel anytime

Get the Annual Deal

実際のユースケース

バッチ処理

bash
# フォルダ内のすべてのPNGを変換
for f in ./images/*.png; do vectosolve convert "$f"; done

# 商品写真から背景を除去
for f in ./products/*.jpg; do vectosolve remove-bg "$f" -o "./clean/$(basename $f .jpg).png"; done

CI/CD統合

yaml
# GitHub Actionsの例
- name: アセットをベクター化
  run: |
    npm install -g vectosolve
    vectosolve auth --key ${{ secrets.VECTOSOLVE_API_KEY }}
    vectosolve convert ./src/assets/logo.png -o ./public/logo.svg

デザインワークフロー

bash
# ロゴのバリエーションを生成、最適なものを選択、最終版をベクター化
vectosolve logo "Nextera techロゴ" -n 4 -o ./drafts/
vectosolve convert ./drafts/final-choice.png -o ./brand/logo.svg

料金

コマンド1回あたりの料金
convert$0.20
remove-bg$0.07
upscale$0.15
logo$0.25以上

クレジットの購入は vectosolve.com/pricing で。

開発者エコシステムの一部

ツールインストール用途
TypeScript SDKnpm i @vectosolve/sdkアプリ統合
CLInpm i -g vectosolveターミナル & CI/CD
MCPサーバーnpx @vectosolve/mcpAI IDE統合

3つすべてが同じVectoSolve APIに接続し、クレジット残高を共有します。

→ npmで見る · APIドキュメント · 料金

Tags:
CLI
SVG
vectorization
command-line
npm
batch-processing
CI/CD
developer-tools
Share:

Try VectoSolve Now

Convert your images to high-quality SVG vectors with AI

AI-Powered Vectorization

Ready to vectorize your images?

Convert your PNG, JPG, and other images to high-quality, scalable SVG vectors in seconds.