diff --git a/data/widgets/webp_options.xml b/data/widgets/webp_options.xml
new file mode 100644
index 000000000..2f9a9f698
--- /dev/null
+++ b/data/widgets/webp_options.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
index e070386ab..0125cdd46 100644
--- a/src/app/CMakeLists.txt
+++ b/src/app/CMakeLists.txt
@@ -274,6 +274,7 @@ add_library(app-lib
file/png_format.cpp
file/split_filename.cpp
file/tga_format.cpp
+ file/webp_format.cpp
file_selector.cpp
file_system.cpp
filename_formatter.cpp
@@ -412,6 +413,7 @@ target_link_libraries(app-lib
${JPEG_LIBRARIES}
${GIF_LIBRARIES}
${PNG_LIBRARIES}
+ ${WEBP_LIBRARIES}
${ZLIB_LIBRARIES})
if(ENABLE_UPDATER)
diff --git a/src/app/file/file_formats_manager.cpp b/src/app/file/file_formats_manager.cpp
index 1a8f8027c..74b78e895 100644
--- a/src/app/file/file_formats_manager.cpp
+++ b/src/app/file/file_formats_manager.cpp
@@ -29,6 +29,7 @@ extern FileFormat* CreateJpegFormat();
extern FileFormat* CreatePcxFormat();
extern FileFormat* CreatePngFormat();
extern FileFormat* CreateTgaFormat();
+extern FileFormat* CreateWebPFormat();
static FileFormatsManager* singleton = NULL;
@@ -67,6 +68,7 @@ void FileFormatsManager::registerAllFormats()
registerFormat(CreatePcxFormat());
registerFormat(CreatePngFormat());
registerFormat(CreateTgaFormat());
+ registerFormat(CreateWebPFormat());
}
void FileFormatsManager::registerFormat(FileFormat* fileFormat)
diff --git a/src/app/file/webp_format.cpp b/src/app/file/webp_format.cpp
new file mode 100644
index 000000000..489a4ceea
--- /dev/null
+++ b/src/app/file/webp_format.cpp
@@ -0,0 +1,361 @@
+// Aseprite
+// Copyright (C) 2001-2015 David Capello
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "app/app.h"
+#include "app/console.h"
+#include "app/context.h"
+#include "app/document.h"
+#include "app/file/file.h"
+#include "app/file/file_format.h"
+#include "app/file/format_options.h"
+#include "app/find_widget.h"
+#include "app/ini_file.h"
+#include "app/load_widget.h"
+#include "base/file_handle.h"
+#include "doc/doc.h"
+#include "ui/ui.h"
+
+#include
+#include
+#include
+#include