Recognise .webp as an image file.
authorCarl Hetherington <cth@carlh.net>
Mon, 2 Sep 2024 13:18:58 +0000 (15:18 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 2 Sep 2024 13:18:58 +0000 (15:18 +0200)
src/lib/util.cc

index fdc647fbab8c9506bc9a2ee4cc7894b44a341982..f637534a913db8c38ed65221d8f626537189966f 100644 (file)
@@ -684,7 +684,7 @@ valid_image_file (boost::filesystem::path f)
                ext == ".tif" || ext == ".tiff" || ext == ".jpg" || ext == ".jpeg" ||
                ext == ".png" || ext == ".bmp" || ext == ".tga" || ext == ".dpx" ||
                ext == ".j2c" || ext == ".j2k" || ext == ".jp2" || ext == ".exr" ||
-               ext == ".jpf" || ext == ".psd"
+               ext == ".jpf" || ext == ".psd" || ext == ".webp"
                );
 }