From 2474cebc58b1a54bf66f8d4455908876dcae88f5 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 30 Apr 2017 21:10:09 +0300 Subject: [PATCH] Support more image conversions --- .../eu/svjatoslav/meviz/encoder/converters/Convert.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Convert.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Convert.java index cf416a9..eaf55a5 100644 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Convert.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Convert.java @@ -1,6 +1,6 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright (C) 2012-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 getSourceFileExtensions() { + return getSupportedFormats(); + } + + private List getSupportedFormats() { return toList("tif", "tiff", "png", "jpg", "jpeg"); } @Override public List getTargetFileExtensions() { - return toList("png", "tiff", "tif"); + return getSupportedFormats(); } @Override -- 2.20.1