Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agnivade/shimmer
Image transformation in wasm using Go
https://github.com/agnivade/shimmer
golang webassembly
Last synced: 11 days ago
JSON representation
Image transformation in wasm using Go
- Host: GitHub
- URL: https://github.com/agnivade/shimmer
- Owner: agnivade
- License: mit
- Created: 2018-06-15T05:32:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T09:20:42.000Z (about 5 years ago)
- Last Synced: 2024-10-13T02:15:10.064Z (25 days ago)
- Topics: golang, webassembly
- Language: JavaScript
- Homepage: https://agniva.me/shimmer/
- Size: 2.29 MB
- Stars: 144
- Watchers: 7
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shimmer
> “The shimmer is a prism but it refracts everything.”- Annihilation (2018)
Image transformation in wasm using Go.
![screenshot](screenshot.png)
**LIVE DEMO** at https://agniva.me/shimmer/
Just a demo project done on a weekend to play with images inside the browser using WASM. Performance lag is noticeable for images over 100KB.
### Setup
- Run `make build-prod`
- Serve the files using any HTTP server. (Note that .wasm files need to be served with `application/wasm` mime type. So the server must be capable of doing that.)### Benchmarks
```
name time/op
AdjustImage 249ms ± 4%name alloc/op
AdjustImage 2.44MB ± 0%name allocs/op
AdjustImage 62.0 ± 0%
```