upscale-image
Skill21 starsChanged 7 days agoMITView on GitHub
Use when the user wants to AI-upscale images 2× / 3× / 4× — recovering detail in low-res sources, prepping small photos for print, enlarging AI-generated images. Wraps `upscayl-bin` (the CLI bundled with Upscayl) with its model library; falls back to standalone `realesrgan-ncnn-vulkan` if Upscayl isn't installed. GPU-accelerated via Vulkan.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- pilioai/skillstheir own version, first seen Jul 26, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- pilioai/skills★ 43same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- ai-graphicsSkill
- auto-deskewSkill
- auto-toneSkill
- auto-white-balanceSkill
- batch-set-copyrightSkill
- check-model-pricingSkill
- convert-to-avifSkill
- fast-resizeSkill
- fast-thumbnailSkill
- from-jxlSkill
- images-to-pdfSkill
- install-depsSkill
- new-projectSkill
- new-workflowSkill
- open-workspaceSkill
- optimize-jpegSkill
- optimize-pngSkill
- pdf-extract-embedded-imagesSkill
- pdf-to-imagesSkill
- read-metadataSkill
- scrub-metadataSkill
- set-metadataSkill
- svg-to-rasterSkill
- to-jxlSkill
- transcode-jpeg-to-jxl-losslessSkill
- vectorizeSkill
- web-readySkill
- workspace-setupSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Do not use this skill when:
- Very specific: line 45
If none found, point the user at install-deps (Upscayl install instructions: <https://upscayl.org>).
- Very specific: line 54
Verify the requested model exists in the resolved dir (each model is a .param + .bin pair).
- Very specific: line 71
Scale 2 or 3: run 4× upscale, then post-resize down via vipsthumbnail to (orig × scale) dimensions:
- Very specific: line 78
Output format conversion: if --output-format jpg:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Upscale Image (Upscayl)
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.
When to use
- Low-res source needs to be enlarged for print or display.
- AI-generated image at 1024px wants 4096px output without re-prompting.
- Old photos / screenshots need detail recovery.
Do not use this skill when:
- The source is already large enough — upscaling rarely improves a 4K-native image.
- The user wants traditional bicubic / lanczos upscaling —
fast-resizeis the right tool (much faster, no AI). - The image is text/document-heavy — upscalers can hallucinate glyph detail; consider
tesseractre-OCR + re-typeset instead.
Inputs
- Input — file or directory. Required.
- Scale —
2,3, or4(Upscayl's bundled models are 4× natively; 2× and 3× are produced by post-resize). Default4. - Model — one of:
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).- Or
--model-path <dir> --model-name <name>to point at a custom model.
- Output dir — default:
<input-dir>/upscaled/. Skill never overwrites originals. - Output format — default
png(lossless preserves the upscale fidelity).jpgoption for size-sensitive batches (uses quality 92). - Recursive —
--recursivefor directory descent. - GPU — default auto-detect.
--gpu <n>to pick a specific GPU.--cputo force CPU (slow — only for headless boxes).
Procedure
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/- User-custom dir at
~/.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+.binpair).- Enumerate inputs (image extensions only).
For each file:
<binary> \ -i "<input>" \ -o "<output>.png" \ -s 4 \ -m "<models-dir>" \ -n "<model>"The
-sflag is fixed at the model's native scale (almost always 4). For non-4× output:- Scale 2 or 3: run 4× upscale, then post-resize down via
vipsthumbnailto(orig × scale)dimensions:vipsthumbnail "<intermediate-4x.png>" --size "<target-w>x<target-h>" \ --output "<final>.<ext>[Q=92]" - Scale 4 native: the upscaler output is final.
- Scale 2 or 3: run 4× upscale, then post-resize down via
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
- Upscaled images at
<output-dir>/. - Summary:
- Files processed / failed.
- Per-file: input dimensions → output dimensions, model used, elapsed seconds.
- Total elapsed.
- GPU device that was used (from upscayl-bin's stderr).
Notes
- Upscayl's
upscayl-standard-4xproduces visibly better results than vanillarealesrgan-x4pluson most photos — keep the default unless the user has a reason. - Anime/illustration content: switch to
realesrgan-x4plus-animeor one of the anime-specific Upscayl variants. Photo models smear line art. - Compute time: ~5–20s per 1080p input on a mid-range GPU; 1–3 minutes per image on CPU. Batch a folder overnight for CPU runs.
- Output format default is PNG because JPEG re-encoding immediately after upscale undoes some of the perceptual gain. JPEG only when the user explicitly wants smaller files.
- Combining with other skills:
web-readyafter upscale → use thegalleryprofile to ship the upscaled output to the web at sensible quality.images-to-pdfafter upscale → enlarge then print at higher DPI.
- This skill does not auto-install Upscayl or download models. The user owns that step. Models are typically several hundred MB total.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

