From 160d15b45b45136d273b16fefb59d9071dd77d6d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 17 Feb 2019 11:50:39 +0000 Subject: add webp image handler --- content/handlers/image/image.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content/handlers/image/image.c') diff --git a/content/handlers/image/image.c b/content/handlers/image/image.c index 675fdd691..4eb366e0b 100644 --- a/content/handlers/image/image.c +++ b/content/handlers/image/image.c @@ -35,6 +35,7 @@ #include "image/png.h" #include "image/rsvg.h" #include "image/svg.h" +#include "image/webp.h" #include "image/image.h" /** @@ -94,6 +95,12 @@ nserror image_init(void) return error; #endif +#ifdef WITH_WEBP + error = nswebp_init(); + if (error != NSERROR_OK) + return error; +#endif + return error; } -- cgit v1.2.3