All models
Media utilitiesv1.0.0
Convert Image Format
Re-encode an image as PNG, JPEG, WebP, or AVIF (sharp)
3 inputsIMAGE


Converted to WebP
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-format-convert 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-format-convert", {
image: { ref: "https://..." },
format: { value: "png" },
quality: { value: 80 },
});# Install once, then sign in
npm install -g blitflow
blitflow login
blitflow node image-format-convert \
-i image=@https://... \
-i format="png" \
-i quality=80{
"name": "runs_node",
"arguments": {
"node": "image-format-convert",
"inputs": {
"image": {
"ref": "https://..."
},
"format": {
"value": "png"
},
"quality": {
"value": 80
}
}
}
}curl https://studio.blitflow.com/api/v1/runs/node \
-H "Authorization: Bearer $BLITFLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{"node":"image-format-convert","inputs":{"image":{"ref":"https://..."},"format":{"value":"png"},"quality":{"value":80}}}'Schema
Inputs
| image* | IMAGE | ||
| format | TEXT | png · jpeg · webp · avif | png |
| quality | INT | 80 |
Outputs
| image | IMAGE |