AVIF image format integration

Since at the moment Java provides no native AVIF image format support, can such 3rd party Java solutions be added to the Lucee package?

1 Like

from the TwelveMonkeys library GitHub (which Lucee currently uses in its Image extension):

NightMonkeys brings HEIF/AVIF read support via libheif. It needs Java 21 and preview features.

The NightMonkeys Java library (currently v1.0.0 / Aug 26, 2024):

1 Like

I think there are two issues with that:

  1. you have to install libheif on your machine/server, so it’s not native java
    • with Java < 22, a no-op version of the plugin will unregister itself on load, basically doing nothing
  • with Java 22+, the plugin will be available
  1. Suggestion was that perhaps the libheif library could come integrated into the next version of the image extension as per the above solution, in order to support AVIF.
  2. since Lucee (v6.2) already is compiled/runs on Java 21 (LTS) and the previous versions of the NightMonkeys Java library do work with JRE 21 ( v0.5 β†’ v0.6.3, as Java 22 only becomes a requirement in v.1.0), the solution could be implemented right now.

In later versions, once Lucee inevitably moves past Java 21 it could then also just upgrade its Image Extension with NM library v.1+