All models
Media utilitiesv1.0.0

Resize Image

Resize or rescale an image to target dimensions (sharp)

5 inputsIMAGE
Resize Image input
Resize Image output

Resized to 512px wide

Run the node

IMAGE
1 – 16384INT
1 – 16384INT
TEXT
TEXT
Sign in to run

Running a model executes it on your account. Browsing the catalog stays free and needs no account.

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" },
});

Schema

Inputs

image*IMAGE
widthINT
heightINT
fitTEXT
stretch · contain · cover
stretch
resamplingTEXT
auto · nearest · cubic · lanczos
auto

Outputs

imageIMAGE