Image Conversion
OperationalConvert images between JPEG, PNG, WebP, AVIF, GIF, and more
API Overview
The Image Conversion API handles format conversion across the full spectrum of web and print image formats. Submit an image in any supported format and receive it back in your chosen output format. The service correctly handles alpha channel and transparency during PNG-to-JPEG conversions (filling with a configurable background color), preserves color profiles, and supports animated GIF to WebP conversion. Straightforward, reliable, and fast at the edge.
7+ Format Support
Converts between JPEG, PNG, WebP, AVIF, GIF, BMP, and TIFF in any combination.
Color Profile Preservation
Retains ICC color profiles through conversion so colors remain accurate across formats.
Animated GIF to WebP
Converts animated GIFs to the smaller, modern WebP format with animation intact.
Transparency Handling
Manages alpha channels and fills transparent areas with a configurable background color.
terminal API Playground
Live Simulationimport requests
import base64
with open("image.png", "rb") as f:
encoded = base64.b64encode(f.read()).decode()
url = "https://api.picopayd.codefission.co.uk/media/api/convert"
headers = {
"Content-Type": "application/json",
"X-PAYMENT": "<402-payment-token>"
}
payload = {
"image": encoded,
"fromFormat": "png",
"toFormat": "webp"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json()) {
"success": true,
"fromFormat": "png",
"toFormat": "webp",
"image": "UklGRn...",
"encoding": "base64",
"sizeBytes": 24576
}