Resize
Resize images in a second
Set a width, a height or a scale. Fit inside, fill and crop, or stretch.
$0.001
per run in the cloud
$0
on your own machine
Fit, fill or stretch
Keep the whole image, fill the frame, or force the size.
Any format
Keep the format or save as PNG, JPEG or WebP.
Private
Runs on your computer, no upload.
Reference
Inputs and parameters
The same on every surface: the desktop app, Claude through MCP and the API. Unknown parameters are refused, so a typo never runs with a default.
Inputs
| Name | Type | Limits | Notes |
|---|---|---|---|
| image required | image | 30 MB, 40 MP | Source image |
Parameters
| Name | Type | Default | Accepted | Notes |
|---|---|---|---|---|
| width | int | · | 1 to 8192 | Target width in pixels. |
| height | int | · | 1 to 8192 | Target height in pixels. |
| scale | float | · | 0.05 to 8 | Scale factor, used when width and height are both empty. |
| mode | enum | fit | fit, fill, stretch | fit: inside the box, keep ratio. fill: cover the box and center-crop. stretch: exact size. |
| format | enum | same | same, png, jpeg, webp |
Outputs
- imageimage
API
Run Resize from the API
curl https://imference.com/tools/resize \ -H "Authorization: Bearer $IMFERENCE_API_KEY" \ -F image=@image.png
Files go in multipart fields named after the inputs; JSON works too, with {"inputs": {...}, "params": {...}} and https URLs or base64 data: URIs. The answer is a request_id: poll GET /status?request_id=... until it returns the outputs. Pay per call from a wallet instead at POST /ondemand/tools/resize. A run that fails is refunded to your credits. Details in the reference.
Specs
The details
- Price
- $0.001 · 1 credit
- Runs
- Local and cloud
- License
- No model weights
- Tool id
- resize 1.0.0
- MCP tool
- resize
More tools
Often used with it
Convert / compress
Convert to PNG, JPEG or WebP and set the compression quality.
$0.001
Crop
Crop an image to a rectangle or to an aspect ratio (centered).
$0.001
Describe image
Write a detailed caption of an image, ready to reuse as a prompt (Florence-2).
$0.002
Magic eraser
Remove what the mask covers and fill it with matching background (LaMa).
$0.004
FAQ
Good to know
Does it make images sharper when larger?
No, it resizes. To add real detail, use the upscaler.