Add ability to import JXL images
This commit is contained in:
@@ -237,6 +237,14 @@ bool hasJpegExtension(const Glib::ustring& filename)
|
||||
return extension == "jpg" || extension == "jpeg";
|
||||
}
|
||||
|
||||
#ifdef JXL
|
||||
bool hasJxlExtension(const Glib::ustring& filename)
|
||||
{
|
||||
const Glib::ustring extension = getFileExtension(filename);
|
||||
return extension == "jxl";
|
||||
}
|
||||
#endif
|
||||
|
||||
bool hasTiffExtension(const Glib::ustring& filename)
|
||||
{
|
||||
const Glib::ustring extension = getFileExtension(filename);
|
||||
|
Reference in New Issue
Block a user