Nothing Special   »   [go: up one dir, main page]

Skip to content

libbpg bin-wrapper that makes it seamlessly available as a local dependency. https://bellard.org/bpg/

License

Notifications You must be signed in to change notification settings

thammin/libbpg-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libbpg-bin

binary wrapper for libbpg

This wrapper gonna use prebuilt binary if possible and fallback to compile from latest source code from here.

Install

$ npm install --save libbpg-bin

Usage

const { exec } = require('child_process');
const { bpgenc, bpgdec } = require('libbpg-bin');

exec(`${bpgenc} -o output.bpg input.png`, () => {
  // Yay! BIG input.png had been converted to SMALL output.bpg.
});

exec(`${bpgdec} -o input.png output.bpg`, () => {
  // Owh! BIG input.png come back again.
});

Available prebuilt binary version

OS libbpg version
MacOS 0.9.4
Linux need help
Windows need help

compile and PR is welcome!

# create binary for the latest version
$ npm run binary -- --compile 

# or create a specific version
$ npm run binary -- --compile="0.9.4"

License

MIT

About

libbpg bin-wrapper that makes it seamlessly available as a local dependency. https://bellard.org/bpg/

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published