summaryrefslogtreecommitdiff
path: root/content/handlers/image/image.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-02-17 12:09:17 +0000
committerVincent Sanders <vince@kyllikki.org>2019-02-17 12:09:17 +0000
commit070c74b64822b40d2f80164ce5e207720506ef2e (patch)
tree884654a0cc277267c64fedbe9aa576a300091223 /content/handlers/image/image.c
parent6185b254ca92638b45102743a6accf0894f7a890 (diff)
downloadnetsurf-070c74b64822b40d2f80164ce5e207720506ef2e.tar.gz
netsurf-070c74b64822b40d2f80164ce5e207720506ef2e.tar.bz2
add webp image handler
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;
}