auto_fix_high

Image Conversion

Operational

Convert images between JPEG, PNG, WebP, AVIF, GIF, and more

api API Docs

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.

autorenew

7+ Format Support

Converts between JPEG, PNG, WebP, AVIF, GIF, BMP, and TIFF in any combination.

palette

Color Profile Preservation

Retains ICC color profiles through conversion so colors remain accurate across formats.

gif

Animated GIF to WebP

Converts animated GIFs to the smaller, modern WebP format with animation intact.

opacity

Transparency Handling

Manages alpha channels and fills transparent areas with a configurable background color.

integration_instructions API Reference

terminal API Playground

Live Simulation
import 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())
Response Body 200 OK
{
  "success": true,
  "fromFormat": "png",
  "toFormat": "webp",
  "image": "UklGRn...",
  "encoding": "base64",
  "sizeBytes": 24576
}