Back to Tool
📐
Image Resizer API
Resize images to specific dimensions via API
Endpoint
POST
/api/v1/image-resizerAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
| image | File | Yes | Image file (JPEG, PNG, WebP, GIF, max 10MB) |
| width | number | No | Target width in pixels (1-4096) |
| height | number | No | Target height in pixels (1-4096) |
| maintainAspectRatio | boolean | No | Keep aspect ratio (default: true) |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| originalWidth | number | Original image width |
| originalHeight | number | Original image height |
| newWidth | number | Resized width |
| newHeight | number | Resized height |
| image | string | Base64 encoded resized image |
| mimeType | string | Image MIME type |
Code Examples
curl -X POST https://tools.shubhambadgujar.com/api/v1/image-resizer \
-H "X-API-Key: your_api_key" \
-F "image=@/path/to/image.jpg" \
-F "width=800" \
-F "height=600"Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com