org.alfresco.repo.content.transform.magick
Class ImageTransformationOptions

java.lang.Object
  extended by org.alfresco.service.cmr.repository.TransformationOptions
      extended by org.alfresco.repo.content.transform.magick.ImageTransformationOptions

public class ImageTransformationOptions
extends TransformationOptions

Image transformation options


Field Summary
static java.lang.String OPT_COMMAND_OPTIONS
           
static java.lang.String OPT_IMAGE_AUTO_ORIENTATION
           
static java.lang.String OPT_IMAGE_CROP_OPTIONS
           
static java.lang.String OPT_IMAGE_RESIZE_OPTIONS
           
 
Fields inherited from class org.alfresco.service.cmr.repository.TransformationOptions
OPT_INCLUDE_EMBEDDED, OPT_SOURCE_CONTENT_PROPERTY, OPT_SOURCE_NODEREF, OPT_TARGET_CONTENT_PROPERTY, OPT_TARGET_NODEREF, relaxedBooleanTypeConverter
 
Constructor Summary
ImageTransformationOptions()
           
 
Method Summary
 java.lang.String getCommandOptions()
          Get the command string options
 ImageCropOptions getCropOptions()
           
 ImageResizeOptions getResizeOptions()
          Get the image resize options
 boolean isAutoOrient()
           
 void setAutoOrient(boolean autoOrient)
           
 void setCommandOptions(java.lang.String commandOptions)
          Set the command string options
 void setCropOptions(ImageCropOptions cropOptions)
           
 void setResizeOptions(ImageResizeOptions resizeOptions)
          Set the image resize options
 java.util.Map toMap()
          Overrides the base class implementation to add our options
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.service.cmr.repository.TransformationOptions
getIncludeEmbedded, getLimits, getMaxPages, getMaxSourceSizeKBytes, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getSourceContentProperty, getSourceNodeRef, getTargetContentProperty, getTargetNodeRef, getTimeoutMs, set, setIncludeEmbedded, setLimits, setMaxPages, setMaxSourceSizeKBytes, setPageLimit, setReadLimitKBytes, setReadLimitTimeMs, setSourceContentProperty, setSourceNodeRef, setTargetContentProperty, setTargetNodeRef, setTimeoutMs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPT_COMMAND_OPTIONS

public static final java.lang.String OPT_COMMAND_OPTIONS
See Also:
Constant Field Values

OPT_IMAGE_RESIZE_OPTIONS

public static final java.lang.String OPT_IMAGE_RESIZE_OPTIONS
See Also:
Constant Field Values

OPT_IMAGE_CROP_OPTIONS

public static final java.lang.String OPT_IMAGE_CROP_OPTIONS
See Also:
Constant Field Values

OPT_IMAGE_AUTO_ORIENTATION

public static final java.lang.String OPT_IMAGE_AUTO_ORIENTATION
See Also:
Constant Field Values
Constructor Detail

ImageTransformationOptions

public ImageTransformationOptions()
Method Detail

setCommandOptions

public void setCommandOptions(java.lang.String commandOptions)
Set the command string options

Parameters:
commandOptions - the command string options

getCommandOptions

public java.lang.String getCommandOptions()
Get the command string options

Returns:
String the command string options

setResizeOptions

public void setResizeOptions(ImageResizeOptions resizeOptions)
Set the image resize options

Parameters:
resizeOptions - image resize options

getResizeOptions

public ImageResizeOptions getResizeOptions()
Get the image resize options

Returns:
ImageResizeOptions image resize options

toString

public java.lang.String toString()
Overrides:
toString in class TransformationOptions

toMap

public java.util.Map toMap()
Overrides the base class implementation to add our options

Overrides:
toMap in class TransformationOptions

setCropOptions

public void setCropOptions(ImageCropOptions cropOptions)
Parameters:
cropOptions - the cropOptions to set

getCropOptions

public ImageCropOptions getCropOptions()
Returns:
the cropOptions

isAutoOrient

public boolean isAutoOrient()
Returns:
Will the image be automatically oriented(rotated) based on the EXIF "Orientation" data. Defaults to TRUE

setAutoOrient

public void setAutoOrient(boolean autoOrient)
Parameters:
autoOrient - automatically orient (rotate) based on the EXIF "Orientation" data


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.