webpmux bin-wrapper that makes it seamlessly available as a local dependency
npm install webpmux-bin> This is a bin wrapper for libwebp's webpmux.
> webpmux -- Create animated WebP files from non-animated WebP images, extract frames from animated WebP images, and manage XMP/EXIF metadata and ICC profile.
``sh`
npm install webpmux-bin
(see libwebp_version key).But if you want, you can force this package to use another version of libwebp at the time you
npm install it.To do so, add the version to use to your
package.json _before_ running npm install webpmux:
`json
{
"libwebp_version": "1.3.0"
}
`
_* Can be a specific version or "latest"._Usage
`js
import {execFile} from 'node:child_process'
import webpmux from 'webpmux-bin'execFile(webpmux, [
'-strip', 'exif',
'input.webp',
'-o', 'output.webp',
], error => {
if (error) throw error
console.log('Image created!')
})
`CLI
`sh
npm install --global webpmux-bin
``sh
webpmux -help
`webpmux` options* This package is made by Philip van Heemstra
* webpmux is part of libwebp, and was written by the WebP team.
The latest source tree is available at https://chromium.googlesource.com/webm/libwebp/