diff --git a/CMakeLists.txt b/CMakeLists.txt
index 53a0a2b0a..bd52eb349 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,6 @@ option(USE_SHARED_JPEGLIB "Use your installed copy of jpeglib" off)
option(USE_SHARED_ZLIB "Use your installed copy of zlib" off)
option(USE_SHARED_LIBPNG "Use your installed copy of libpng" off)
option(USE_SHARED_LIBLOADPNG "Use your installed copy of libloadpng" off)
-option(USE_SHARED_LIBWEBP "Use your installed copy of libwebp" off)
option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
option(USE_SHARED_FREETYPE "Use shared FreeType library" off)
@@ -221,21 +220,8 @@ add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
# libwebp
if(WITH_WEBP_SUPPORT)
- if(USE_SHARED_LIBWEBP)
- find_package(PkgConfig)
- pkg_check_modules(WEBP libwebp)
- if(NOT WEBP_FOUND)
- message(FATAL_ERROR "libwebp not found")
- endif()
- else()
- # Skia already includes webp library
- if(NOT USE_SKIA_BACKEND)
- set(WEBP_LIBRARIES webp)
- else()
- set(WEBP_LIBRARIES "")
- endif()
- set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
- endif()
+ set(WEBP_LIBRARIES webp webpdemux webpmux)
+ set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
include_directories(${WEBP_INCLUDE_DIR})
endif()
diff --git a/data/pref.xml b/data/pref.xml
index 5d6ccb1cc..80f2185e7 100644
--- a/data/pref.xml
+++ b/data/pref.xml
@@ -276,6 +276,15 @@
+
diff --git a/data/strings/en.ini b/data/strings/en.ini
index ffdf9e187..b71a8f220 100644
--- a/data/strings/en.ini
+++ b/data/strings/en.ini
@@ -1199,8 +1199,10 @@ color = Color:
[webp_options]
title = WebP Options
save_as = Save as:
+animation_loop = Animation &Loop
+type = Type:
+simple_webp = Simple: Good Lossless Compression
lossless_webp = Lossless WebP
-lossless_webp_tooltip = Save in simple WebP lossless format.
compression = Compression:
image_hint = Image Hint:
image_hint_default = Default
@@ -1208,7 +1210,6 @@ image_hint_picture = Picture
image_hint_photo = Photo
image_hint_graph = Graph
lossy_webp = Lossy WebP
-lossy_webp_tooltip = Save in simple WebP lossy format.
quality = Quality:
image_preset = Image Preset:
image_preset_default = Default
diff --git a/data/widgets/webp_options.xml b/data/widgets/webp_options.xml
index c6f27974a..31efa6f7b 100644
--- a/data/widgets/webp_options.xml
+++ b/data/widgets/webp_options.xml
@@ -1,41 +1,52 @@
+
-
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/app/file/webp_format.cpp b/src/app/file/webp_format.cpp
index 82eca7d43..db83b306e 100644
--- a/src/app/file/webp_format.cpp
+++ b/src/app/file/webp_format.cpp
@@ -18,9 +18,12 @@
#include "app/file/format_options.h"
#include "app/file/webp_options.h"
#include "app/ini_file.h"
-#include "base/file_handle.h"
+#include "app/pref/preferences.h"
+#include "base/bind.h"
#include "base/convert_to.h"
+#include "base/file_handle.h"
#include "doc/doc.h"
+#include "render/render.h"
#include "webp_options.xml.h"
@@ -29,9 +32,8 @@
#include
#include