tif 2 png
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Tif2Png.java
1 /*
2  * Meviz - Various tools collection to work with multimedia.
3  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU General Public License
7  * as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.meviz.encoder.converters;
11
12 import java.io.File;
13
14 import eu.svjatoslav.meviz.encoder.EncodingOptions;
15
16 public class Tif2Png implements Converter {
17
18         @Override
19         public String getCommand(final File inputFile, final File targetFile,
20                         final EncodingOptions options) {
21                 return "convert \"" + inputFile.getAbsolutePath() + "\" \""
22                                 + targetFile.getAbsolutePath() + "\"";
23         }
24
25         @Override
26         public String getSourceFileExtension() {
27                 return "png";
28         }
29
30         @Override
31         public String getTargetFileExtension() {
32                 return "tif";
33         }
34
35         @Override
36         public boolean isTerminalMandatory() {
37                 return false;
38         }
39
40 }