AVIF ImageProvider registering
Michael Strauß
michaelstrau2 at gmail.com
Thu Jan 27 14:03:45 UTC 2022
The error message of the exception that is thrown by `ImageStorage`
when attempting to load an unsupported image type is: "No loader for
image data". If you're encountering a different exception, maybe it
originates from somewhere else.
That being said, you're right that OpenJFX doesn't care about file
extensions and only checks file signatures. For both HEIC and AVIF
files, that's "ftyp" followed by a `major_brand` identifier. Maybe
you're encountering files with different kinds of `major_brand`?
Note that image loaders are an implementation detail of OpenJFX and
not public API, which means that the classes could change at any time
without notice.
On Thu, Jan 27, 2022 at 12:04 PM Clemens Lanthaler
<clemens.lanthaler at itarchitects.at> wrote:
>
> Hello everyone,
>
> as some of you already know I have created the project LibHeifFX
> (github.com/lanthaler/libheiffx) for adding HEIC (iPhone) and AVIF file
> format to the image class.
>
> Basically all is working with HEIC files, but as soons as I try to open
> a AVIF file OpenJFX gives me the error message "No imagedataprovider
> found!". But I have correctly registered AVIF as well.
>
> Tested OpenJFX: 17.0.2
>
> Could it be that I am in a conflict with an internal signature ? Because
> it seems that OpenJFX only is checking the file signature and ignores
> the extension.
>
> Thank you in advance.
> Clemens
More information about the openjfx-dev
mailing list