https://github.com/xingmarc/bpg-decoder
A BPG decoder for the web, originated from https://github.com/mirrorer/libbpg
https://github.com/xingmarc/bpg-decoder
bpg bpg-decoder bpg-javascript-decoder
Last synced: 5 months ago
JSON representation
A BPG decoder for the web, originated from https://github.com/mirrorer/libbpg
- Host: GitHub
- URL: https://github.com/xingmarc/bpg-decoder
- Owner: xingmarc
- Created: 2017-03-04T03:20:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T19:01:38.000Z (about 9 years ago)
- Last Synced: 2025-08-09T02:44:08.776Z (10 months ago)
- Topics: bpg, bpg-decoder, bpg-javascript-decoder
- Language: JavaScript
- Size: 486 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bpg-decoder
> This repo is originated from https://github.com/mirrorer/libbpg
Use BPG format today to make your website faster!
A React component for BPG using this repo: https://github.com/xuezhma/react-bpg
## usage:
`npm install bpg-decoder`
```
var BPGDecoder = require('bpg-decoder');
canvas = document.getElementById("mycanvas");
ctx = canvas.getContext("2d");
img = new BPGDecoder(ctx);
img.load("your-bpg-picture.bpg");
```
## known issue
see issues.