/api/resize /api/resize?url=https://picsum.photos/800/600&width=400&height=300 width, the height will be calculated automatically to maintain aspect ratio. Same applies if you only provide height.url parameter supports both regular HTTP/HTTPS URLs and data URLs (e.g., data:image/png;base64,...).[
"url",
"width",
"height",
"format"
] {
"url": "https://picsum.photos/800/600",
"width": 800,
"height": 600,
"format": "jpeg"
} Make a GET request to /api/resize with your desired parameters as query strings. The service will return a resized image.
Examples:
/api/resize?url=https://example.com/image.jpg&width=400&height=300/api/resize?url=https://example.com/image.jpg&width=400/api/resize?url=https://example.com/image.jpg&height=300/api/resize?url=https://example.com/image.jpg&width=400&format=png/api/resize?url=data:image/png;base64,iVBORw0KG...&width=200