2 * Meviz - Various tools collection to work with multimedia.
3 * Copyright (C) 2012 -- 2017-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.meviz.encoder.converters;
12 import eu.svjatoslav.meviz.encoder.EncodingOptions;
15 import java.util.List;
17 public class Convert extends AbstractConverter {
20 public String getCommand(final File inputFile, final File targetFile,
21 final EncodingOptions options, String targetFormat) {
22 return "convert \"" + inputFile.getAbsolutePath() + "\" \""
23 + targetFile.getAbsolutePath() + "\"";
27 public List<String> getSourceFileExtensions() {
28 return getSupportedFormats();
31 private List<String> getSupportedFormats() {
32 return toList("tif", "tiff", "png", "jpg", "jpeg", "bmp", "gif");
36 public List<String> getTargetFileExtensions() {
37 return getSupportedFormats();
41 public boolean isTerminalMandatory() {