Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opacity for background color #375

Open
gb6881 opened this issue Dec 22, 2021 · 0 comments
Open

opacity for background color #375

gb6881 opened this issue Dec 22, 2021 · 0 comments

Comments

@gb6881
Copy link

gb6881 commented Dec 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant