diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2021-01-03 20:16:55 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-03 20:16:55 +0100 | 
| commit | 1a8734a22666d4084c89f65f66e233fec5064d13 (patch) | |
| tree | 1d0ae144a28e1ca76b3f9d6bb0ffec535d856fa2 | |
| parent | f2364294d76a6830605ac9375cb0c976346a3e5e (diff) | |
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
| -rw-r--r-- | src/imlib.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/imlib.c b/src/imlib.c index 54bc327..2c629f5 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -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 | 
