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