org.gcube.datatransformation.datatransformationlibrary.programs.images
Class ImageMagickWrapper
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.programs.Elm2ElmProgram
org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram
org.gcube.datatransformation.datatransformationlibrary.programs.images.ImageMagickWrapper
- All Implemented Interfaces:
- org.gcube.datatransformation.datatransformationlibrary.programs.Program
public class ImageMagickWrapper
- extends org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram
- Author:
- Dimitris Katris, NKUA
Wraps the functionality of ImageMagick command line program.
|
Method Summary |
static void |
main(String[] args)
Tests ImageMagickWrapper program. |
File |
transformFile(File sourceFile,
List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType,
String targetContentPath)
|
| Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram |
transformDataElement |
| Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.programs.Elm2ElmProgram |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageMagickWrapper
public ImageMagickWrapper()
main
public static void main(String[] args)
throws Exception
- Tests ImageMagickWrapper program.
- Parameters:
args - source and target files.
- Throws:
Exception - If conversion could not be performed.
transformFile
public File transformFile(File sourceFile,
List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType,
String targetContentPath)
throws Exception
- Specified by:
transformFile in class org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram
- Parameters:
sourceFile - The source file.programParameters - The parameters of the Program.targetContentType - The ContentType in which the DataElement will be transformed.targetContentPath - The path for the transformed content.
- Returns:
- The file with the transformed content.
- Throws:
Exception - If the Program is not capable to transform DataElements.- See Also:
File2FileProgram.transformFile(java.io.File, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.lang.String)
Copyright © 2013. All Rights Reserved.