Skip to content
Snippets Groups Projects
Commit 1a8734a2 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add heic/heif to supported file formats

Note that Imlib2 does not support HEIC/HEIF images out of the box. However, the
imlib2-heic loader (https://github.com/vi/imlib2-heic) does.

Closes #579
parent f2364294
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,11 @@ int feh_is_image(feh_file * file)
// might be webp
return 1;
}
if (!memcmp(buf + 4, "ftyphei", 7) || !memcmp(buf + 4, "ftypmif1", 8)) {
// HEIC/HEIF - note that this is only supported in imlib2-heic. Ordinary
// imlib2 releases do not support heic/heif images as of 2021-01.
return 1;
}
buf[15] = 0;
if (strstr((char *)buf, "XPM")) {
// XPM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment