Open alastortenebris opened 2 years ago
Looks like kf5arcive, libavif, libheif, libjxl, and openexr might have to be added to the manifest for the package or runtime as well for some of the additional formats to work with KimageFormats. https://invent.kde.org/frameworks/kimageformats/-/blob/master/CMakeLists.txt
They need to be added to the runtime too
For some dependencies like libavif that might be a bit trickier as it requires rav1e and cargo-c which uses Rust SDK. Krita uploaded tarballs for those dependencies at https://files.kde.org/krita/build/dependencies/flatpak/ which allows for offline installation that can be used with flatpak-builder.
See https://github.com/flathub/org.kde.krita/blob/89ab5bdf5a581bd4709f63fec92e6b1fad551b0b/org.kde.krita.yaml#L721 for reference as well on the manifest.
There is a script to generate manifest from Rust dependencies somewhere on Flathub so that you don't have to do as Krita does AFAIK.
Clearing the assignee as I'm not actively working on this.
MR for adding libheif here https://invent.kde.org/packaging/flatpak-kde-runtime/-/merge_requests/158
KImageFormats adds support for multiple image formats such as
psd
,jxl
, andavif
.