/vavi-image-avif

🖼️ AVIF Java ImageIO SPI (libavif, jna)

Primary LanguageJavaOtherNOASSERTION

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