To resize an image, make a GET request to:
/resize?url=[encoded_image_url]&width=[width]&height=[height]&quality=[quality]&format=[format]
url
: URL-encoded image URLwidth
: Desired width in pixels (optional if height is specified)height
: Desired height in pixels (optional if width is specified)quality
: JPEG/WebP quality (1-100, default: 85)format
: Output format (jpeg, png, webp, default: jpeg)Resize by width with custom quality (JPEG):
/resize?url=https%3A%2F%2Fexample.com%2Fimage.jpg&width=800&quality=90
Convert to WebP format:
/resize?url=https%3A%2F%2Fexample.com%2Fimage.jpg&width=800&format=webp
Convert to PNG with exact dimensions:
/resize?url=https%3A%2F%2Fexample.com%2Fimage.jpg&width=800&height=600&format=png