All models
Media utilitiesv1.0.0
Resize Image
Resize or rescale an image to target dimensions (sharp)
5 inputsIMAGE


Resized to 512px wide
Output
Fill in the inputs and run the node to see its output here.
Run it from your code
The same node, called by id from any surface. Every tab pins image-resize and passes the ports below. Full guide.
import { BlitClient } from "@blitflow/sdk";
const { runNode } = new BlitClient({ apiKey: process.env.BLITFLOW_TOKEN });
const { outputs } = await runNode("image-resize", {
image: { ref: "https://..." },
width: { value: 1 },
height: { value: 1 },
fit: { value: "stretch" },
resampling: { value: "auto" },
});# Install once, then sign in
npm install -g blitflow
blitflow login
blitflow node image-resize \
-i image=@https://... \
-i width=1 \
-i height=1 \
-i fit="stretch" \
-i resampling="auto"{
"name": "runs_node",
"arguments": {
"node": "image-resize",
"inputs": {
"image": {
"ref": "https://..."
},
"width": {
"value": 1
},
"height": {
"value": 1
},
"fit": {
"value": "stretch"
},
"resampling": {
"value": "auto"
}
}
}
}curl https://studio.blitflow.com/api/v1/runs/node \
-H "Authorization: Bearer $BLITFLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{"node":"image-resize","inputs":{"image":{"ref":"https://..."},"width":{"value":1},"height":{"value":1},"fit":{"value":"stretch"},"resampling":{"value":"auto"}}}'Schema
Inputs
| image* | IMAGE | ||
| width | INT | ||
| height | INT | ||
| fit | TEXT | stretch · contain · cover | stretch |
| resampling | TEXT | auto · nearest · cubic · lanczos | auto |
Outputs
| image | IMAGE |