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

Solution to installation in docker alpine #12

Open
njavilas2015 opened this issue Sep 25, 2021 · 0 comments
Open

Solution to installation in docker alpine #12

njavilas2015 opened this issue Sep 25, 2021 · 0 comments

Comments

@njavilas2015
Copy link

njavilas2015 commented Sep 25, 2021

Good morning colleagues, I publish here my code to use this library in docker alpine
apk add ca-certificates ffmpeg libwebp libwebp-tools
cp /usr/bin/cwebp /{appProject}/node_modules/webp-converter/b in/libwebp_linux/bin/cwebp


import * as webp from 'webp-converter';

webp.grant_permission();

export const convert = async ({ input, output }) => {
    try {
        const result = await webp.cwebp(input, output, null, "-v");

        console.log(result)

    } catch (error) {
        console.log(error)
    }
}
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