image-resize
Skill210 starsChanged todayMITView on GitHub
Resizes a single image to explicit width and height using ImageMagick. Use when the user wants image resize, scale a sprite/texture, resize a UI asset or icon, or mentions ImageMagick resize — target size must be specified before running.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- godot-fun/godot-agentword for word, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- godot-fun/godot-agent★ 210100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- ai-text-to-speechSkill
- audio-denoiseSkill
- audio-fadeSkill
- audio-loudness-normalizationSkill
- audio-sample-rate-standardizeSkill
- audio-splitSkill
- audio-to-oggSkill
- audio-to-textSkill
- audio-to-wavSkill
- audio-trimSkill
- audio-volume-adjustSkill
- file-naming-normalizationSkill
- git-commit-messageSkill
- image-inpaint-regionSkill
- image-region-remove-key-color-appSkill
- image-remove-backgroundSkill
- image-remove-white-backgroundSkill
- image-sprite-sheet-splitSkill
- image-to-pngSkill
- image-to-textSkill
- image-trimSkill
- storyboard-av-mixSkill
- storyboard-shot-to-htmlSkill
- storyboardSkill
- storyboard-ttsSkill
- video-4k-normalizationSkill
- video-bgmSkill
- video-compress-to-sizeSkill
- video-cutSkill
- video-merge-gpuSkill
- video-mergeSkill
- video-publishSkill
- video-remove-audioSkill
- video-to-4kSkill
- video-to-60fpsSkill
- video-to-mp4Skill
- video-to-ogvSkill
- video-to-wavSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Distinctive: line 14
Require target size first: If width/height are missing, ask the user before running.
- Very specific: line 16
Run resize.py through the bundled script — do not hand-write magick -resize commands.
- Very specific: line 35
Use bin/magick on Unix (no .exe).
- Distinctive: line 94
Use the bundled script, not hand-written ImageMagick commands.
≈ “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
Image Resize
Resize one image file to a user-specified width and height via ImageMagick. Both dimensions are required — do not run this skill until the user (or task) provides target pixel size.
Rules
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Require target size first. If width/height are missing, ask the user before running.
- Single file only. Pass one image with
--image; directories are not supported. - Run
resize.pythrough the bundled script — do not hand-writemagick -resizecommands. - Never overwrite source files. Output goes to
image-resize/(or--output) by default. populated: falseforimagemagickis not a reason to skip. Install first, setpopulated: true, retry the same command.
Setup (first run)
Download ImageMagick portable build from imagemagick.org and extract to
.dependency/imagemagick/.Windows result example:
.dependency/imagemagick/magick.exe- Register in
.dependency/manifest.json:
"imagemagick": {
"populated": true,
"bin": ".dependency/imagemagick/magick.exe"
}Use bin/magick on Unix (no .exe).
Quick Start
Both --width and --height are required:
.dependency/python/python .ai/image-resize/resize.py --image assets/sprites/hero.png --width 128 --height 128Example: assets/ui/icon.png → assets/ui/image-resize/icon.png at 64×64
Custom output path:
.dependency/python/python .ai/image-resize/resize.py --image assets/icons/badge.png -o assets/icons_64 --width 64 --height 64Resize Modes
| Mode | Flag | Behavior |
fit (default) | --mode fit | Fit inside WxH, preserve aspect ratio (letterbox area unused) |
fill | --mode fill | Cover WxH, center-crop overflow |
exact | --mode exact | Force WxH, ignore aspect ratio |
# Fit within 128×128 (default — no distortion)
.dependency/python/python .ai/image-resize/resize.py --image assets/hero.png --width 128 --height 128
# Cover 128×128, crop center
.dependency/python/python .ai/image-resize/resize.py --image assets/hero.png --width 128 --height 128 --mode fill
# Stretch to exactly 128×128
.dependency/python/python .ai/image-resize/resize.py --image assets/hero.png --width 128 --height 128 --mode exactDefaults
| Option | Default | Notes |
--image | Required | Single supported image file |
--width / --height | Required | Must be positive integers |
--mode | fit | fill or exact when user needs crop or stretch |
| Output | <source-dir>/image-resize/<source-name> | Use --output for custom file or directory |
| Format | Same as source | Extension preserved (.png, .jpg, etc.) |
Supported inputs: .jpg, .jpeg, .png, .webp, .gif, .bmp, .tif, .tiff, .avif, .ico.
Agent Workflow
- Confirm size — get explicit width and height from the user (e.g. "128×128", "64 wide and 64 tall"). Do not guess from context unless the user already stated dimensions.
- Pick mode — default
fit; usefillfor square thumbnails from non-square art; useexactonly when the user accepts distortion. - One file per run — resize one image, verify dimensions, then repeat for additional files if needed.
- Paths — pass whatever image path the user gives; output lands in
image-resize/next to that file by default. - Revert — delete output file or
git restore; sources are never modified.
Agent Notes
- Use the bundled script, not hand-written ImageMagick commands.
- Missing Python/ImageMagick → populate
.dependency/per dependency-manager, retry same command. - Do not copy, move, or replace the source with resized output — tell the user where the output file is.
- Need format conversion only (no resize) → image-to-png.
- Need trim borders after resize → image-trim.
Troubleshooting
| Issue | Fix |
imagemagick missing in manifest | Follow Setup; update manifest |
Missing --width / --height | Ask user for target size; both flags are required |
Directory passed to --image | Run once per file; this skill accepts image files only |
| Output larger/smaller than expected | Check --mode — fit preserves aspect inside the box |
| Distorted sprite | Switch from exact to fit or fill |
| Animated GIF | Only first frame is processed by default ImageMagick behavior |
CLI
Copy-paste commands: cli/image-resize.md
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.

