added GIF support
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Convert.java
index cf416a9..0a21e9d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
@@ -25,12 +25,16 @@ public class Convert extends AbstractConverter {
 
     @Override
     public List<String> getSourceFileExtensions() {
-        return toList("tif", "tiff", "png", "jpg", "jpeg");
+        return getSupportedFormats();
+    }
+
+    private List<String> getSupportedFormats() {
+        return toList("tif", "tiff", "png", "jpg", "jpeg", "bmp", "gif");
     }
 
     @Override
     public List<String> getTargetFileExtensions() {
-        return toList("png", "tiff", "tif");
+        return getSupportedFormats();
     }
 
     @Override