Illustration of a photo with a resize handle and diagonal arrows, a ruler, a percentage badge, and a locked aspect-ratio padlock

Image Resizer

Resize by exact pixels or by percentage. Only changes dimensions — for compression, use the Image Optimizer instead.

Drag & drop an image here, or

Give just one dimension and the other is calculated automatically. Give both with this checked and the image fits within that box without distorting; uncheck it to stretch to the exact box (both required then).


💡 Show API usage examples (cURL)

Resize to an exact width, keeping aspect ratio

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

Resize to 50% of the original size

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

Stretch to an exact box, ignoring aspect ratio

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
🤖 Use this API as a Claude Skill

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:

⬇️ Download SKILL.md · View raw