--- /dev/null
+/*
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
+ */
+
+package eu.svjatoslav.meviz.encoder.converters;
+
+import eu.svjatoslav.meviz.encoder.EncodingOptions;
+
+import java.io.File;
+import java.util.List;
+
+/**
+ * webp decoder.
+ */
+
+public class WebpDecoder extends AbstractConverter {
+
+ @Override
+ public String getCommand(final File inputFile, final File targetFile,
+ final EncodingOptions options, String targetFormat) {
+
+ return "dwebp \"" + inputFile.getAbsolutePath() + "\" -o \"" +
+ targetFile.getAbsolutePath() + "\"";
+ }
+
+ @Override
+ public List<String> getTargetFileExtensions() {
+ return toList("png");
+ }
+
+ @Override
+ public List<String> getSourceFileExtensions() {
+ return toList("webp");
+ }
+
+ @Override
+ public boolean isTerminalMandatory() {
+ return false;
+ }
+
+}