image-upscale
Original:🇺🇸 English
Translated
Upscales an image using AI super-resolution to increase resolution with detail generation. Use when you need to enlarge images, improve low-resolution photos, or prepare images for large-format display.
14installs
Sourceagntswrm/agent-media
Added on
NPX Install
npx skill4agent add agntswrm/agent-media image-upscaleTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Image Upscale
Upscales an image using AI super-resolution models, increasing resolution while generating realistic detail.
Command
bash
agent-media image upscale --in <path> [options]Inputs
| Option | Required | Description |
|---|---|---|
| Yes | Input file path or URL |
| No | Scale factor (2 or 4, default: 2) |
| No | Output path, filename or directory (default: ./) |
| No | Provider to use (local, fal, replicate) |
| No | Model to use (overrides provider default) |
Output
Returns a JSON object with the upscaled image path:
json
{
"ok": true,
"media_type": "image",
"action": "upscale",
"provider": "local",
"output_path": "upscaled_123_abc.png",
"mime": "image/png",
"bytes": 456789
}Examples
Upscale an image (default 2x):
bash
agent-media image upscale --in photo.jpgUpscale 4x with specific provider:
bash
agent-media image upscale --in photo.jpg --scale 4 --provider falUpscale with custom output:
bash
agent-media image upscale --in photo.jpg --out ./upscaledProviders
local
Runs locally on CPU using Transformers.js, no API key required.
- Uses model (~1.3MB)
Xenova/swin2SR-compressed-sr-x4-48 - Always outputs 4x upscale regardless of (model architecture limitation)
--scale - Models downloaded on first use
- You may see a error — ignore it, the output is correct if
mutex lock failed"ok": true
bash
agent-media image upscale --in photo.jpg --provider localfal
- Requires
FAL_API_KEY - Uses (Real-ESRGAN) model
fal-ai/esrgan - Supports 2x and 4x scale
replicate
- Requires
REPLICATE_API_TOKEN - Uses model
nightmareai/real-esrgan - Supports 2-10x scale