POST Request

https://i.bitwize.ae

Params

{
    src: "SOURCE", // REQUIRED (https? | base64)
    // OPTIONAL
    background: "", // string
    blur: 0.75, // float | boolean
    fit: 'cover', // cover | contain | fill | inside | outside
    flatten: true, // boolean
    flip: true, // boolean
    flop: true, // boolean
    format: 'webm', // heic| heif | avif | jpeg | jpg | png | tiff | webp | gif
    grayscale: true, // boolean
    hue: 1,  // integer
    saturation: 1,  // float
    brightness: 1,  // float
    invert: true, // boolean
    kernel: 'nearest', // nearest | cubic | mitchell | lanczos2 | lanczos3
    median: 3, // float | boolean
    normalize: true, // boolean
    position: '', // top | right top | right | right bottom | bottom | left bottom | left | left top | north | northeast | east | southeast | south | southwest | west | northwest | center | centre | cover | entropy | attention
    quality: 100, // integer 0-100
    width: 500, // integer
    w: 500, // integer
    height: 500, // integer
    h: 500, // integer
    aspect: '16:9', // string | number
    rotate: 25, // integer
    tint: '#ffaa22', // string
}

Response

{
    "data": "data:image/webp;base64,ENCODED",
    "base64": "ENCODED",
    "metadata": {
        "format": "webp",
        "size": 1456444,
        "width": 500,
        "height": 889.2753623188406,
        "space": "srgb",
        "channels": 3,
        "depth": "uchar",
        "density": 72,
        "chromaSubsampling": "4:2:0",
        "isProgressive": false,
        "hasProfile": true,
        "hasAlpha": false,
        "orientation": 1,
        "grayscale": true,
        "aspect": 0.5622555410691004
    }
}