@libwebp-wasm/gif2webp

1.0.2 • Public • Published

Libwebp Wasm

Introduction

The process of converting the libwebp project from C/C++ to WASM is achieved using the Emscripten compiler. The general workflow is as follows:

Emscripten Compilation Flow

Usage

Installation

Toolchain

This includes installing emsdk, cmake, and pnpm. For specific installation methods, refer to the Emscripten official documentation, pnpm official documentation, and installing cmake.

submodule

git submodule update --init --recursive --remote --rebase

Build

Currently, the build script only supports macOS, so the following build method is only applicable to macOS. Additionally, if you are using zsh, it is recommended to install the dotenv plugin to enable features like setting environment variables if a .env file is present in the current directory.

pnpm build:mac

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

Example

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @libwebp-wasm/gif2webp

Weekly Downloads

81

Version

1.0.2

License

MIT

Unpacked Size

2.16 MB

Total Files

11

Last publish

Collaborators

  • liuliangsir