fixed source vs target
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 24 Dec 2013 16:53:46 +0000 (18:53 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 24 Dec 2013 16:53:46 +0000 (18:53 +0200)
src/main/java/eu/svjatoslav/meviz/encoder/converters/Tif2Png.java
src/main/java/eu/svjatoslav/meviz/encoder/converters/Tiff2Png.java

index 9757479..55df413 100644 (file)
@@ -24,12 +24,12 @@ public class Tif2Png implements Converter {
 
        @Override
        public String getSourceFileExtension() {
-               return "png";
+               return "tif";
        }
 
        @Override
        public String getTargetFileExtension() {
-               return "tif";
+               return "png";
        }
 
        @Override
index fbbaee8..f717ff6 100644 (file)
@@ -15,27 +15,26 @@ import eu.svjatoslav.meviz.encoder.EncodingOptions;
 
 public class Tiff2Png implements Converter {
 
-
-    @Override
-    public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) {
-        return "convert \"" + inputFile.getAbsolutePath() + "\" \""
-        + targetFile.getAbsolutePath() + "\"";
-    }
-
-    @Override
-    public String getSourceFileExtension() {
-        return "png";
-    }
-
-    @Override
-    public String getTargetFileExtension() {
-        return "tiff";
-    }
-
-    @Override
-    public boolean isTerminalMandatory() {
-        return false;
-    }
-
+       @Override
+       public String getCommand(final File inputFile, final File targetFile,
+                       final EncodingOptions options) {
+               return "convert \"" + inputFile.getAbsolutePath() + "\" \""
+                               + targetFile.getAbsolutePath() + "\"";
+       }
+
+       @Override
+       public String getSourceFileExtension() {
+               return "tiff";
+       }
+
+       @Override
+       public String getTargetFileExtension() {
+               return "png";
+       }
+
+       @Override
+       public boolean isTerminalMandatory() {
+               return false;
+       }
 
 }