Skip to content

Solution to installation in docker alpine #12

@njavilas

Description

@njavilas

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)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions