From 0461dfe3d44b9579e16d00a328f09cb6f5980c54 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Tue, 24 Dec 2013 18:53:46 +0200 Subject: [PATCH] fixed source vs target --- .../meviz/encoder/converters/Tif2Png.java | 4 +- .../meviz/encoder/converters/Tiff2Png.java | 43 +++++++++---------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tif2Png.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tif2Png.java index 9757479..55df413 100644 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tif2Png.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tif2Png.java @@ -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 diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tiff2Png.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tiff2Png.java index fbbaee8..f717ff6 100644 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tiff2Png.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Tiff2Png.java @@ -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; + } } -- 2.20.1