Commit 69e52c67 authored by Daniel Novomeský's avatar Daniel Novomeský
Browse files

Enable Base Media File Format (BMFF) support in Exiv2

Exiv2::enableBMFF(true) is needed to activate metadata support
of AVIF, JPEG XL (jxl) and HEIF formats.
parent 312c6059
Pipeline #155711 passed with stage
in 3 minutes and 25 seconds
......@@ -45,6 +45,10 @@ if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
)
endif()
kde_source_files_enable_exceptions(
main.cpp
)
ki18n_wrap_ui(gwenview_SRCS
advancedconfigpage.ui
fullscreenconfigwidget.ui
......
......@@ -53,6 +53,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <QLoggingCategory>
#include <tiffio.h>
// To enable AVIF/HEIF/JPEG-XL metadata support in Exiv2
#include <exiv2/exiv2.hpp>
namespace
{
Q_DECLARE_LOGGING_CATEGORY(LibTiffLog)
......@@ -146,6 +149,11 @@ private:
int main(int argc, char *argv[])
{
// enable AVIF/HEIF/JPEG-XL metadata support
#ifdef EXV_ENABLE_BMFF
Exiv2::enableBMFF(true);
#endif
#ifdef HAVE_TIFF
TIFFSetWarningHandler(handleTiffWarning);
TIFFSetErrorHandler(handleTiffError);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment