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