- Notifications
You must be signed in to change notification settings - Fork1
A wasm version for img2webp of libwebp
License
libwebp-wasm/img2webp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The process of converting thelibwebp project from C/C++ to WASM is achieved using theEmscripten compiler. The general workflow is as follows:
This includes installingemsdk,cmake, andpnpm. For specific installation methods, refer to theEmscripten official documentation,pnpm official documentation, andinstalling cmake.
git submodule update --init --recursive --remote --rebase
If you are using zsh, it is recommended to installthe dotenv plugin to enable features like setting environment variables if a .env file is present in the current directory.
pnpm build:mac
docker build -f ./docker/Dockerfile -t libwebp-wasm/img2webp:latest.docker run --rm -v$(pwd)/dist:/img2webp/dist -v$(pwd)/es:/img2webp/es -v$(pwd)/lib:/img2webp/lib libwebp-wasm/img2webp:latest
Note: The modification of upstream submodule project code is currently done by running the git apply command. Sometimes you need to commit your own changes in the submodule directory and manually generate the patch.
pnpm build:patch
MIT
About
A wasm version for img2webp of libwebp
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
