Image Resizer
Resize an image with a given image URL.
Request Information
GET https://exorion.xyz/api/image-resize
https://exorion.xyz/api/image-resizeCode Examples
import requests
url = "https://exorion.xyz/api/image-resize"
params = {
"url": "https://example.com/cat.png",
"size": 512
}
headers = {
"Authorization": "API_KEY",
"Content-type": "application/json"
}
response = requests.get(url, params=params, headers=headers)
print(response.status_code)
print(response.json())const fetch = require("node-fetch");
const url = new URL("https://exorion.xyz/api/image-resize");
url.searchParams.append("url", "https://example.com/cat.png");
url.searchParams.append("width", "512"); // specify width
url.searchParams.append("height", "512"); // optional height
const headers = {
Authorization: "API_KEY", // Your API key from /settings
"Content-Type": "application/json"
};
fetch(url, { headers })
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error("Error:", err));The required image size must be between 16 and 4096 to function.
Last updated