org.gcube.datatransformation.datatransformationlibrary.programs.images
Class ImageMagickWrapper

java.lang.Object
  extended by File2FileProgram
      extended by org.gcube.datatransformation.datatransformationlibrary.programs.images.ImageMagickWrapper

public class ImageMagickWrapper
extends File2FileProgram

Author:
Dimitris Katris, NKUA

Wraps the functionality of ImageMagick command line program.


Constructor Summary
ImageMagickWrapper()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests ImageMagickWrapper program.
 java.io.File transformFile(java.io.File sourceFile, java.util.List<Parameter> programParameters, ContentType targetContentType, java.lang.String targetContentPath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMagickWrapper

public ImageMagickWrapper()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Tests ImageMagickWrapper program.

Parameters:
args - source and target files.
Throws:
java.lang.Exception - If conversion could not be performed.

transformFile

public java.io.File transformFile(java.io.File sourceFile,
                                  java.util.List<Parameter> programParameters,
                                  ContentType targetContentType,
                                  java.lang.String targetContentPath)
                           throws java.lang.Exception
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:
java.lang.Exception - If the Program is not capable to transform DataElements.
See Also:
org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram#transformFile(java.io.File, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.lang.String)