🔄 Convert Image from URL
This endpoint downloads an image from a provided URL and converts it to a specified format using FFmpeg.
Endpoint
POST /convert_image_from_url/
Full URL: https://ffmpeg-api-1-hmzg.onrender.com/convert_image_from_url/
Form Data Parameters
image_url(string): URL of the image to download and convert.target_format(string): Target format to convert the image to (e.g.,png,webp,bmp,tiff, etc.)
Success Response
{
"message": "Image converted to png successfully.",
"output_file": "https://ffmpeg-api-1-hmzg.onrender.com/uploads/<session_id>_converted.png"
}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/convert_image_from_url/ \
-F "image_url=https://example.com/image.jpg" \
-F "target_format=png"