RESIZABLE API

Sometimes, Smaller is Better.

๐Ÿš€ Super Fast Image Resizing & Compression

๐Ÿงช TEST OUR IMAGE RESIZING PIPELINE


Upload an Image

Result

๐Ÿ’ก WHAT OUR API LOOKS LIKE?


๐Ÿ“Œ Endpoint

Method: POST

URL: /resize

Content-Type: multipart/form-data

Accepts an image file, resizes it based on optional parameters, and returns the optimized version.

๐Ÿ“ฅ Request Payload

  • file (File, required) - The image file to be resized.
    Supported formats: JPG, JPEG, PNG, WebP.

๐Ÿ“ค Response

The resized image file is returned as a downloadable binary stream.

Headers:

  • Content-Type: image/jpeg
  • Content-Disposition: attachment; filename="resized-image.jpg"

โš ๏ธ Error Handling

  • 400 Bad Request: Missing or invalid parameters.
  • 415 Unsupported Media Type: File format not supported.
  • 500 Internal Server Error: Unexpected error during processing.

๐Ÿš€ INTEGRATE RESIZABLE INTO YOUR SYSTEM



const formData = new FormData();
formData.append("file", file);

fetch('https://resizableapi.vercel.app/api/resize', {
    method: 'POST',
    body: formData,
})
.then(response => response.blob())
.then(blob => {
    const url = URL.createObjectURL(blob);
    console.log("Resized image URL:", url);
});

๐Ÿ“ค Response

The API returns the resized image as a downloadable binary stream.

โš ๏ธ Important Notes

  • Ensure your request includes a valid image file (JPG, JPEG, PNG, WebP).
  • The resized image will be available as a blob.

RESIZABLE API

The fastest way to optimize your images. Resize, compress, and enhance in seconds.

ยฉ 2025 Resizable API. All rights reserved.