Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenfun/gif-encoder-wasm
wasm-gif-encoder
https://github.com/cenfun/gif-encoder-wasm
Last synced: about 2 months ago
JSON representation
wasm-gif-encoder
- Host: GitHub
- URL: https://github.com/cenfun/gif-encoder-wasm
- Owner: cenfun
- License: mit
- Created: 2019-10-11T00:42:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T04:59:35.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T08:52:33.043Z (3 months ago)
- Language: JavaScript
- Size: 38.7 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Wasm Gif Encoder
> wasm gif encoder for nodejs## Install
- wasm-pack## Usage
```
npm run buildnpm run test
```## Test Result
>Rust-Gif to Wasm-Gif was Bad Performance than Node
```
start to generate: H:\workspace\gif-encoder-wasm\test\example\iamgroot.gif (18 frames) ...
wasm start: 1668426467465
wasm end: 1668426468759
wasm duration: 1294
start to generate: H:\workspace\gif-encoder-wasm\test\example\screenshot.gif (8 frames) ...
wasm start: 1668426470102
wasm end: 1668426470913
wasm duration: 811
┌──────────────┬──────────┬─────────────────────┐
│ Test │ Duration │ File │
├──────────────┼──────────┼─────────────────────┤
│ ├ iamgroot │ │ │
│ │ ├ node │ 3,616ms │ iamgroot-node.gif │
│ │ └ wasm │ 1,836ms │ iamgroot-wasm.gif │
│ └ screenshot │ │ │
│ ├ node │ 1,055ms │ screenshot-node.gif │
│ └ wasm │ 1,093ms │ screenshot-wasm.gif │
└──────────────┴──────────┴─────────────────────┘
```>Rust-Png to Wasm-Png was also Bad Performance: [issue](https://github.com/image-rs/image-png/issues/114)
## Links
* [`wasm-pack`](https://github.com/rustwasm/wasm-pack)
* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen)
* [`image-gif`](https://github.com/image-rs/image-gif)
* [`image-png`](https://github.com/image-rs/image-png)