Skip to content

agnivade/shimmer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

shimmer

“The shimmer is a prism but it refracts everything.”- Annihilation (2018)

Image transformation in wasm using Go.

screenshot

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%