Developers

Resize API

Resize any JPEG, PNG, or WebP image to exact dimensions in your browser. Fast, free, and no upload limits on the free tier. Try it without code first on the free resize tool.

POST/v1/images/transform
curl https://api.pixpoo.com/v1/images/transform \
  -H "x-api-key: pxp_xxxxxxxx" \
  -F file=@photo.jpg \
  -F width=1200 \
  -F height=800 \
  -F format=webp

Parameters

filefilerequired

The source image (multipart upload). Use "url" instead to fetch from a remote address.

urlstring

Remote image URL to use instead of a file upload.

widthinteger

Target width in pixels.

heightinteger

Target height in pixels.

fitstring

One of cover, contain, fill, inside, outside. Defaults to cover.

formatstring

Output format: jpeg, png, webp, avif, gif, or tiff. Omit to keep the source image's own format.

qualityinteger

1–100. Defaults to 82.

Response

The resized image, re-encoded at the requested quality.

Prefer JSON with a base64 payload instead of raw bytes? Use /v1/images/transform/json with the same parameters.

← Back to API documentation