Update JPEG XL handling
authorColin Clark <colin.clark@cclark.uk>
Sun, 11 Jun 2023 15:08:47 +0000 (16:08 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 11 Jun 2023 15:08:47 +0000 (16:08 +0100)
geeqie-install-debian.sh
src/editors.cc
src/filefilter.cc

index eaf00c9..c6e4689 100755 (executable)
@@ -8,7 +8,7 @@
 ## Dialogs allow the user to install additional features.
 ##
 
-version="2023-03-11"
+version="2023-06-11"
 description='
 Geeqie is an image viewer.
 This script will download, compile, and install Geeqie on Debian-based systems.
@@ -90,7 +90,9 @@ libchamplain-gtk-0.12-dev
 libchamplain (for GPS maps)
 libchamplain-0.12-dev
 libpoppler (for pdf file preview)
-libpoppler-glib-dev"
+libpoppler-glib-dev
+libjxl (for viewing .jxl images)
+libjxl-dev"
 
 ####################################################################
 # Get System Info
index 55af2a8..371b30e 100644 (file)
@@ -106,6 +106,7 @@ static GList *editor_mime_types_to_extensions(gchar **mime_types)
                {"image/heic",          ".heic"},
                {"image/jpeg",          ".jpeg;.jpg;.mpo"},
                {"image/jpg",           ".jpg;.jpeg"},
+               {"image/jxl",           ".jxl"},
                {"image/webp",          ".webp"},
                {"image/pcx",           ".pcx"},
                {"image/png",           ".png"},
index 0a613ab..fc55773 100644 (file)
@@ -190,6 +190,9 @@ void filter_add_defaults()
 #ifdef HAVE_DJVU
        filter_add_if_missing("djvu", "DjVu Format", ".djvu;.djv", FORMAT_CLASS_DOCUMENT, FALSE, FALSE, TRUE);
 #endif
+#ifdef HAVE_JXL
+       filter_add_if_missing("jxl", "JXL", ".jxl", FORMAT_CLASS_IMAGE, FALSE, TRUE, TRUE);
+#endif
 #ifdef HAVE_J2K
        filter_add_if_missing("jp2", "JPEG 2000", ".jp2", FORMAT_CLASS_IMAGE, FALSE, FALSE, TRUE);
 #endif