Class ImageTransformationOptions

  • All Implemented Interfaces:
    java.lang.Cloneable

    @AlfrescoPublicApi
    public class ImageTransformationOptions
    extends TransformationOptions
    Image transformation options
    Author:
    Roy Wetherall
    • 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_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

        @Deprecated
        public void setCommandOptions​(java.lang.String commandOptions)
        Deprecated.
        will be removed in a future release and be replaced by individual options that can be checked.
        Set the command string options
        Parameters:
        commandOptions - the command string options
      • getCommandOptions

        @Deprecated
        public java.lang.String getCommandOptions()
        Deprecated.
        will be removed in a future release and be replaced by individual options that can be checked.
        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
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Overrides the base class implementation to add our options
        Overrides:
        toMap in class TransformationOptions
      • 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