Skip to content

🖼️ BPG Java ImageIO SPI (jna)

Notifications You must be signed in to change notification settings

umjammer/vavi-image-bpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Java CI CodeQL Java

vavi-image-bpg

BPG (Better Portable Graphics) decoder over libbpg via JNA.

Install

maven

dynamic library

libbpg

$ git clone https://github.com/mirrorer/libbpg
$ cd libbpg
$ git fetch --depth 1 origin 0e2aadb
$ git checkout 0e2aadb
$ patch -p 0 < .../vavi-image-bpg/src/main/patch/mac.patch
$ make
$ cp libbpg.dylib /usr/local/lib

java system property

 -Djna.library.path=/usr/local/lib

Usage

    BufferedImage image = ImageIO.read(Paths.get("/foo/bar.bpg").toFile());

References

TODO