mcpField
I
image-upscaling

image-upscaling

github.com/eachlabsクリエイティブ・メディア46324 回インストール2 日前に更新
リポジトリ

image-upscaling について

each::senseで画像を拡大・補正するスキルです。2倍から16倍の拡大に加え、顔の細部補正、ノイズ低減、古い写真の修復、AIアートの細部保持に対応します。

主な機能

  1. 012倍から16倍までの拡大
  2. 02拡大時の顔のディテール補正
  3. 03ノイズや圧縮アーティファクトの低減
  4. 04古い写真の修復
  5. 05AIアートの細部保持

活用シーン

  1. 01ウェブ画像を印刷用に拡大
  2. 02低照度写真の鮮明さを改善
  3. 03古い家族写真を修復して拡大
  4. 04EC向けの商品画像を整える

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/eachlabs/skills --skill image-upscaling

インストール後、Claude Code で/image-upscalingを入力して読み込まれたか確認します。

同梱ファイルreferences/SSE-EVENTS.md

詳細

画像のアップスケーリング

each::sense を使用して画像をアップスケーリングし、品質を高めます。このスキルでは、顔の補正、ノイズ除去、ディテールの保持に対応したインテリジェントな補正オプションを使って、解像度を 2 倍から 16 倍にする AI 搭載の画像アップスケーリングを利用できます。

特長

  • 2 倍のアップスケーリング:ウェブ画像やソーシャルメディア画像をすばやく補正します
  • 4 倍のアップスケーリング:印刷物向けの高品質な出力です
  • 8 倍/16 倍のアップスケーリング:大型ディスプレイ、看板、ポスター向けです
  • 顔の補正:アップスケーリング中に顔のディテールをインテリジェントに復元します
  • ノイズ除去:アップスケーリングしながら、粒状感や圧縮による劣化を取り除きます
  • 古い写真の修復:ビンテージ写真や傷んだ写真をよみがえらせます
  • AI アートの補正:AI 生成アートのディテールを保持し、向上させます
  • 商品画像の補正:e コマースに適した高解像度の商品写真を作成します

クイックスタート

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this image 4x for print quality"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-image.jpg"],
    "mode": "max"
  }'

アップスケーリング倍率

倍率出力サイズ(1024px から)最適な用途
2x2048pxウェブ画像、ソーシャルメディア、サムネイル
4x4096px印刷物、高解像度ディスプレイ
8x8192px大判印刷、ポスター
16x16384px看板、展示ディスプレイ

使用例

1. ウェブ画像の 2 倍アップスケーリング

ウェブサイト、ソーシャルメディアの投稿、デジタルマーケティング向けの画像品質の向上に最適です。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this web image 2x. Optimize for fast loading while improving sharpness and clarity. The image will be used on a website hero section."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/website-hero.jpg"],
    "mode": "eco"
  }'
2. 印刷向けの 4 倍アップスケーリング

300 DPI が必要なパンフレット、チラシ、雑誌などの印刷物向けに、高品質でアップスケーリングします。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this image 4x for print production. I need 300 DPI quality for a magazine spread. Preserve all fine details and ensure crisp edges."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/magazine-photo.jpg"],
    "mode": "max"
  }'
3. 大判向けの 8 倍/16 倍アップスケーリング

看板、展示会ディスプレイ、壁面サイズの印刷物向けに、大幅にアップスケーリングします。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this image 8x for a large format banner print. The final output will be displayed on a 10 foot wide trade show backdrop. Maximize detail enhancement and ensure no artifacts."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/tradeshow-banner.jpg"],
    "mode": "max"
  }'
4. アップスケーリング中の顔の補正

ポートレートをアップスケーリングしながら、目、肌の質感、顔の特徴を向上させるインテリジェントな顔の修復です。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this portrait 4x with face enhancement enabled. Restore facial details, enhance eyes, improve skin texture while keeping it natural. This is a headshot photo."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait-headshot.jpg"],
    "mode": "max"
  }'
5. ノイズ除去とアップスケーリング

粒状感のある画像、圧縮された画像、低品質の画像をきれいにしながら、解像度を上げます。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this noisy low-light photo 4x. Apply aggressive noise reduction while preserving important details. The image was taken in low light conditions and has visible grain and compression artifacts."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/low-light-photo.jpg"],
    "mode": "max"
  }'
6. 古い写真のアップスケーリング

ビンテージ写真、古い家族写真、歴史的な画像を修復してアップスケーリングします。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale and restore this old family photograph from the 1970s. The image is faded, slightly damaged, and low resolution. Enhance to 4x while restoring colors, fixing damage, and improving clarity. Preserve the vintage aesthetic."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/old-family-photo.jpg"],
    "mode": "max"
  }'
7. AI アートのアップスケーリング

芸術的なスタイルを保ち、アーティファクトを避けながら、AI 生成アートを向上させます。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this AI-generated artwork 4x for print. Preserve the artistic style and enhance fine details. This is digital art created by an AI image generator - avoid adding unwanted textures or changing the artistic style."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/ai-artwork.png"],
    "mode": "max"
  }'
8. 商品画像のアップスケーリング

ディテールを補正し、e コマース向けに最適化して商品写真をアップスケーリングします。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this product photo 4x for e-commerce use. Enhance product details, improve sharpness on edges and textures. The image is of a leather handbag and needs to show material texture clearly for zoom functionality."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/product-handbag.jpg"],
    "mode": "max"
  }'
9. 動画フレームのアップスケーリング

動画コンテンツから抽出した個々の動画フレームやサムネイルを補正します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this video frame 4x. This is a still frame extracted from 1080p video footage. Enhance it to 4K quality while reducing compression artifacts and maintaining natural motion blur where present."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/video-frame.jpg"],
    "mode": "max"
  }'
10. 一括アップスケーリングのワークフロー

セッションの永続化を利用して、複数の画像を同じ設定で処理します。

# First image in batch
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this product image 4x with face enhancement and noise reduction. This is the first of a series of product photos I need processed."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/product-001.jpg"],
    "session_id": "batch-upscale-products",
    "mode": "max"
  }'

# Second image (same session maintains settings)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this next product image using the same settings as before."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/product-002.jpg"],
    "session_id": "batch-upscale-products"
  }'

# Third image
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Continue with the same upscaling settings for this product image."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/product-003.jpg"],
    "session_id": "batch-upscale-products"
  }'

ベストプラクティス

倍率の選択
  • 2x:ほとんどのウェブやソーシャルメディア用途に十分です
  • 4x:印刷品質(300 DPI 相当)の標準です
  • 8x 以上:見る距離が離れる大判用途に限って使用します
品質に関するヒント
  • 元画像の品質が重要です:入力画像の品質が高いほど、アップスケーリング後の出力も高品質になります
  • ファイル形式:可能であれば、入力には PNG または高品質(90% 以上)の JPEG を使用してください
  • 顔の補正:人の顔が写っている画像にのみ有効にしてください
  • ノイズ除去:暗所や強く圧縮された画像には積極的に使用してください
出力に関する考慮事項
  • ファイルサイズ:倍率が高いほど、ファイルサイズが大幅に大きくなります
  • 処理時間:8 倍や 16 倍のアップスケーリングには時間がかかります。しばらくお待ちください
  • 見る距離:大判印刷物は離れた場所から見られるため、極端に細かいディテールは必ずしも必要ではありません

画像のアップスケーリングに関するプロンプトのヒント

アップスケーリングを依頼する際は、プロンプトに次の詳細を含めてください。

  1. 倍率:2x、4x、8x、16x のいずれかを指定します
  2. 用途:ウェブ、印刷、大型ディスプレイ
  3. 画像の種類:写真、AI アート、商品写真、ポートレート
  4. 特別な要件:顔の補正、ノイズ除去、アーティファクトの除去
  5. 出力の目的:最終的な用途を示すと、処理を最適化できます
プロンプトの構成例
"Upscale this [image type] [scale factor] for [use case].
[Special requirements like face enhancement or noise reduction].
[Additional context about the source image quality or intended output]."

モードの選択

処理を開始する前に、ユーザーに確認してください。

「速度と低コストを優先しますか、それとも高品質を優先しますか?」

モード最適な用途速度品質
max本番用の最終画像、印刷物、重要なプロジェクト遅め最高
eco簡易プレビュー、一括テスト、Web サムネイル速め良好

複数ターンでのアップスケーリングワークフロー

アップスケーリング結果を調整するには、session_id を使用してください。

# Initial upscale
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Upscale this photo 4x for print"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/photo.jpg"],
    "session_id": "upscale-project-001"
  }'

# Request adjustments
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "The result looks good but can you also apply face enhancement and reduce noise?"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "upscale-project-001"
  }'

# Request different scale
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Actually I need 8x for a larger print. Can you upscale it further?"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "upscale-project-001"
  }'

エラー処理

エラー原因解決方法
Failed to create prediction: HTTP 422残高不足eachlabs.ai でチャージしてください
画像が大きすぎます元画像が最大寸法を超えていますアップスケーリングの前に元画像のサイズを変更してください
タイムアウト拡大率が大きいほど時間がかかりますクライアントのタイムアウトを最短でも 10 分に設定してください
未対応の形式画像形式が無効ですJPEG、PNG、または WebP を入力してください

関連スキル

  • each-sense - コア API のドキュメント
  • image-generation - テキストプロンプトから画像を生成します
  • image-editing - 既存の画像を編集、加工します
  • old-photo-restoration - ビンテージ写真に特化した修復

コメント