🖼️ Resize Image
This endpoint downloads an image from a provided URL and resizes it to the given width and height using FFmpeg.
Endpoint
POST /resize_image/
Full URL: https://ffmpeg-api-1-hmzg.onrender.com/resize_image/
Form Data Parameters
image_url
(string): URL of the image to be resizedwidth
(integer): Desired width of the resized imageheight
(integer): Desired height of the resized image
Success Response
{
"message": "Image resized successfully",
"output_file": "https://ffmpeg-api-1-hmzg.onrender.com/uploads/<session_id>_resized.jpg"
}
Error Response
{ "error": "<server error message>" }
Make sure the image URL is accessible and points to a direct image file like .jpg
, .png
, etc.
Usage Examples
curl -X POST https://ffmpeg-api-1-hmzg.onrender.com/resize_image/ \
-F "image_url=https://example.com/image.jpg" \
-F "width=300" \
-F "height=200"