Skip to content

🖼️ AVIF Java ImageIO SPI (libavif, jna)

License

Notifications You must be signed in to change notification settings

umjammer/vavi-image-avif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Java CI CodeQL Java Parent

vavi-image-avif

Java AVIF decoder and encoder
wrapped libavif by jna

avif logo© AOM

Install

  • install libavif 1.0.3~ ... e.g. brew intall libavif
  • maven
  • add -Djna.library.path=/opt/homebrew/lib for jvm args

Usage

    // read
    BufferedImage image = ImageIO.read(Paths.get("/foo/bar.avif").toFile());
    // write
    ImageIO.write(image, "AVIF", Paths.get("/foo/baz.avif").toFile());

References

TODO

  • writer