Resize by exact pixels or by percentage. Only changes dimensions — for compression, use the Image Optimizer instead.
curl -sS -X POST https://devops.majbase.com/image-resizer/api \
-F "file=@photo.jpg" \
-F "mode=px" \
-F "width=800" \
-o photo_resized.jpg
curl -sS -X POST https://devops.majbase.com/image-resizer/api \
-F "file=@photo.png" \
-F "mode=percent" \
-F "percent=50" \
-o photo_half.png
curl -sS -X POST https://devops.majbase.com/image-resizer/api \
-F "file=@photo.webp" \
-F "mode=px" \
-F "width=600" \
-F "height=600" \
-F "preserve_aspect_ratio=0" \
-o photo_square.webp
Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:
~/.claude/skills/image-resizer/SKILL.md