Add webp support to similar images (#396)
This commit is contained in:
parent
0e9b8a1651
commit
a342ddfba7
|
@ -271,7 +271,7 @@ impl SimilarImages {
|
||||||
.to_lowercase();
|
.to_lowercase();
|
||||||
|
|
||||||
// Checking allowed image extensions
|
// Checking allowed image extensions
|
||||||
let allowed_image_extensions = [".jpg", ".jpeg", ".png", ".bmp", ".tiff", ".tif", ".pnm", ".tga", ".ff", ".gif", ".jif", ".jfi"];
|
let allowed_image_extensions = [".jpg", ".jpeg", ".png", ".bmp", ".tiff", ".tif", ".pnm", ".tga", ".ff", ".gif", ".jif", ".jfi", ".webp"];
|
||||||
if !allowed_image_extensions.iter().any(|e| file_name_lowercase.ends_with(e)) {
|
if !allowed_image_extensions.iter().any(|e| file_name_lowercase.ends_with(e)) {
|
||||||
continue 'dir;
|
continue 'dir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue