diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-20 09:07:09 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-20 09:07:09 +0300 |
commit | e9e496ffb64d83a55162d38ffc6d87a364bb6a95 (patch) | |
tree | a8a76c8bf63b24347e5d09582319db5eca4e7d88 /src/gmdocument.c | |
parent | 4e62a21cea5781fc91ec5ef22710e0fe19badb3c (diff) |
Added WebP decoding using libwebp
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 6ed628de..75f6f06b 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -240,7 +240,10 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li | |||
240 | iString *path = newRange_String(parts.path); | 240 | iString *path = newRange_String(parts.path); |
241 | if (endsWithCase_String(path, ".gif") || endsWithCase_String(path, ".jpg") || | 241 | if (endsWithCase_String(path, ".gif") || endsWithCase_String(path, ".jpg") || |
242 | endsWithCase_String(path, ".jpeg") || endsWithCase_String(path, ".png") || | 242 | endsWithCase_String(path, ".jpeg") || endsWithCase_String(path, ".png") || |
243 | endsWithCase_String(path, ".tga") || endsWithCase_String(path, ".psd") || | 243 | endsWithCase_String(path, ".tga") || endsWithCase_String(path, ".psd") || |
244 | #if defined (LAGRANGE_ENABLE_WEBP) | ||
245 | endsWithCase_String(path, ".webp") || | ||
246 | #endif | ||
244 | endsWithCase_String(path, ".hdr") || endsWithCase_String(path, ".pic")) { | 247 | endsWithCase_String(path, ".hdr") || endsWithCase_String(path, ".pic")) { |
245 | link->flags |= imageFileExtension_GmLinkFlag; | 248 | link->flags |= imageFileExtension_GmLinkFlag; |
246 | } | 249 | } |