/image-production:upscale-imagefrom image-production
AI-upscales images 2×–4× using Upscayl's CLI or realesrgan-ncnn-vulkan. Recovers detail in low-res photos, AI art, and screenshots.
Ships in image-production. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI upscaling via upscayl-bin — the CLI shipped with the Upscayl GUI. Same Vulkan-accelerated realesrgan-ncnn-vulkan engine as standalone, but with Upscayl's curated model selection bundled.
Do not use this skill when:
fast-resize is the right tool (much faster, no AI).tesseract re-OCR + re-typeset instead.2, 3, or 4 (Upscayl's bundled models are 4× natively; 2× and 3× are produced by post-resize). Default 4.upscayl-standard-4x (default — best general-purpose photo upscaler).upscayl-lite-4x (faster, lower quality, good for batches).realesrgan-x4plus (classic, slightly different texture handling).realesrgan-x4plus-anime (illustrations, line art, anime).remacri-4x / ultramix-balanced-4x (alternative photo models if installed).--model-path <dir> --model-name <name> to point at a custom model.<input-dir>/upscaled/. Skill never overwrites originals.png (lossless preserves the upscale fidelity). jpg option for size-sensitive batches (uses quality 92).--recursive for directory descent.--gpu <n> to pick a specific GPU. --cpu to force CPU (slow — only for headless boxes).Locate the binary. Check in order:
which upscayl-bin/opt/Upscayl/resources/bin/upscayl-bin~/.var/app/org.upscayl.Upscayl/data/bin/upscayl-bin (Flatpak)which realesrgan-ncnn-vulkan (fallback — same syntax, smaller model selection)If none found, point the user at install-deps (Upscayl install instructions: https://upscayl.org).
Locate the models directory. For upscayl-bin, typically:
/opt/Upscayl/resources/models/~/.var/app/org.upscayl.Upscayl/data/models/~/.config/Upscayl/models/For standalone realesrgan-ncnn-vulkan, models are alongside the binary or in ./models/.
Verify the requested model exists in the resolved dir (each model is a .param + .bin pair).
Enumerate inputs (image extensions only).
For each file:
<binary> \
-i "<input>" \
-o "<output>.png" \
-s 4 \
-m "<models-dir>" \
-n "<model>"
The -s flag is fixed at the model's native scale (almost always 4). For non-4× output:
vipsthumbnail to (orig × scale) dimensions:
vipsthumbnail "<intermediate-4x.png>" --size "<target-w>x<target-h>" \
--output "<final>.<ext>[Q=92]"
Output format conversion if --output-format jpg:
cjpeg-mozjpeg -quality 92 -progressive < "<output>.png" > "<output>.jpg"
rm "<output>.png"
Sequential, not parallel. Vulkan GPU is single-resource — running multiple upscales concurrently doesn't help and may OOM the GPU on large images. Run one at a time.
Memory awareness. For very large inputs (>4000px on the long side), the Vulkan tile size matters. Default is fine; if the binary reports OOM, retry with -t 100 (smaller tile = less VRAM, slightly slower). Surface this to the user rather than silently failing.
<output-dir>/.upscayl-standard-4x produces visibly better results than vanilla realesrgan-x4plus on most photos — keep the default unless the user has a reason.realesrgan-x4plus-anime or one of the anime-specific Upscayl variants. Photo models smear line art.web-ready after upscale → use the gallery profile to ship the upscaled output to the web at sensible quality.images-to-pdf after upscale → enlarge then print at higher DPI.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
38 skills in this plugin
/ai-graphicsGenerate AI graphics (banners, illustrations, hero images, social cards, characters, etc.) on fal, or Replicate if asked, choosing a cost-effective model per use case. Use when the user asks to create, generate, or make an image, banner, illustration, graphic, or artwork, or to redraw a reference image. For technical diagrams use tech-comms-diagrams./auto-deskewUse when the user wants to automatically straighten a tilted image — scanned documents, phone-captured pages, photographed receipts, or slightly off-axis photos. Detects the dominant skew angle and rotates the image to vertical/horizontal, optionally cropping the resulting transparent triangles. Uses ImageMagick `-deskew` for documents and a Hough-line fallback (via Python + OpenCV) for photographs./auto-toneUse when the user wants automatic tonal correction — fix flat/washed-out / underexposed / low-contrast images by stretching levels, normalising contrast, and gamma-correcting to a neutral midtone. Implements auto-level (per-channel histogram stretch), auto-gamma (midtone correction), and a combined "punch" mode via ImageMagick. Operates on JPEG/PNG/TIFF/WebP./auto-white-balanceUse when the user wants to automatically correct the white balance of an image (or batch) — neutralise colour casts from indoor lighting, mixed light, underwater shots, scans, or uncalibrated cameras. Implements gray-world (default), white-patch (per-channel auto-level), and a combined mode via ImageMagick. Operates on JPEG/PNG/TIFF/WebP; for RAW use `darktable-cli` instead./batch-set-copyrightBatch-stamp copyright, artist, and rights information on all images in a directory. Use when you need to quickly add copyright metadata to a photo library before distribution or archival — a convenience wrapper around exiftool./check-model-pricingCheck what an image model costs on fal (default) or Replicate, search fal's library for a model, and review or update the preferred image models per use case. Use when asked "how much is this model", "what's cheapest for X", "check fal pricing", "review the fal library", "update our preferred models", or before a bulk image run.image-production@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin image-productionOther plugins' skills for the same job