Terminal
Terminal/Skill
Enlarges a local image 2x or 4x with AI upscaling, with optional face enhancement, and saves the result to a file.
By Transloadit
Works with
npx skills add transloadit/skills --skill transform-upscale-image-with-transloaditUse the image upscale intent for quick AI upscaling of a local image.
npx -y @transloadit/node image upscale \
--input ./photo.jpg \
--output ./photo-upscaled.png
Defaults: --model nightmareai/real-esrgan, --scale 2, --face-enhance false.
npx -y @transloadit/node image upscale \
--input ./photo.jpg \
--scale 4 \
--output ./photo-upscaled.png
Use when the input contains human faces that should be sharpened. Pair with gfpgan or codeformer
for dedicated face restoration, or keep real-esrgan + --face-enhance for a general upscale that
also improves faces.
--face-enhance is a boolean flag — pass it bare, not with true.
npx -y @transloadit/node image upscale \
--input ./portrait.jpg \
--face-enhance \
--output ./portrait-upscaled.png
nightmareai/real-esrgan (default): general-purpose SOTA upscaler for photos and illustrations.tencentarc/gfpgan: specialized face restoration; best for portraits with damaged or low-quality faces.sczhou/codeformer: alternative face restoration with more control over fidelity vs. quality.npx -y @transloadit/node image upscale \
--input ./portrait.jpg \
--model tencentarc/gfpgan \
--output ./portrait-restored.png
Notes:
--scale.--output, the CLI writes next to the input file using the intent's default extension.--scale only accepts 2 or 4.npx -y @transloadit/node assemblies get <assemblyIdOrUrl> -j
Notes:
/image/upscale is enabled for your account or switch --model.--scale 4 can exceed per-account limits; try --scale 2 first.