fixed source vs target
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Png2Tiff.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 Png2Tiff implements Converter {
17
18
19     @Override
20     public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) {
21         return "convert \"" + inputFile.getAbsolutePath() + "\" \""
22         + targetFile.getAbsolutePath() + "\"";
23     }
24
25     @Override
26     public String getSourceFileExtension() {
27         return "tiff";
28     }
29
30     @Override
31     public String getTargetFileExtension() {
32         return "png";
33     }
34
35     @Override
36     public boolean isTerminalMandatory() {
37         return false;
38     }
39
40
41 }