summaryrefslogtreecommitdiff
path: root/content/handlers/image/image.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-02-17 11:50:39 +0000
committerVincent Sanders <vince@kyllikki.org>2019-02-17 11:50:39 +0000
commit160d15b45b45136d273b16fefb59d9071dd77d6d (patch)
tree7be89e0aad92e71c0fd5094132918309fadc31b8 /content/handlers/image/image.c
parent54371c28f07e638694ad2148e8900e1bae71e3d4 (diff)
downloadnetsurf-vince/webp.tar.gz
netsurf-vince/webp.tar.bz2
add webp image handlervince/webp
Diffstat (limited to 'content/handlers/image/image.c')
-rw-r--r--content/handlers/image/image.c7
1 files changed, 7 insertions, 0 deletions
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;
}