imaginary icon indicating copy to clipboard operation
imaginary copied to clipboard

opacity for background color

Open gb6881 opened this issue 4 years ago • 0 comments

Hi,

we want to extend an image using "extend", the target image at the end should be supporting transparency/opacity.

  • we want to extend the image using a specified background color (in case it's exported as an jpeg)
  • for images exported in a format support transparency the background should also be transparent.

i tried with:

[
    {
        "operation": "resize",
        "params": {
            "extend": "background",
            "background": "255,255,255,0",
            "width": 1250,
            "stripmeta": false,
            "type": "webp",
            "nocrop": true,
            "height": 703
        }
    }
]

Source: source Result: white-border.webp.gz

is there a way to make that border transparent?

Thanks, Georg

gb6881 avatar Dec 22 '21 10:12 gb6881