View Single Post
Old Yesterday, 01:00 PM   #56
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,881
Karma: 7500000
Join Date: Nov 2009
Device: many
Okay I finally built the libavif binaries and its yuv requirement libs statically and linked them into the libqavif.dylib qt extra plugin.

I can confirm that with these built and in place Sigil's Image Tab will happily show and edit these files.

The biggest issue is size. libavif because of all its codecs now comes in at a whopping 10MB for a single plugin:

-rwxr-xr-x 1 kbhend staff 10618472 Aug 5 12:47 libqavif.dylib
-rwxr-xr-x@ 1 kbhend staff 5374184 Aug 5 11:57 libqjpegxl6.dylib

Which is twice the size of the libjxl plugin which in turn was 5 to 10 times the size of the other built-in qt image plugins!

So this would add about 15meg in size to an already big Sigil binary and would massively bloat the Sigil codebase as both libjxl and libavif are huge projects at the source code level.

This really is something for Qt itself to undertake.

I think we/Sigil just wait until there is more demand for this feature and that Chrome/QWebEngine will actually support both.

As it stands, I am thinking of only creating plugin binaries that interested users would have to download and install themselves, and not be officially supported by Sigil.

Of course on MacOS that would completely break code signatures! So perhaps not.

Quite the mess to build.

Last edited by KevinH; Yesterday at 01:02 PM.
KevinH is offline   Reply With Quote