Class ImageRenderingEngine

All Implemented Interfaces:
ActionExecuter, LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

@Deprecated public class ImageRenderingEngine extends AbstractTransformationRenderingEngine
Deprecated.
The RenditionService is being replace by the simpler async RenditionService2.
This class is the implementation of the RenditionService's "imageRenderingEngine" rendering engine. This action renders a piece of content in the same MIME type as its source node, having been rescaled as requested.
Since:
3.3
Author:
Neil McErlean
  • Field Details

    • NAME

      public static final String NAME
      Deprecated.
      See Also:
    • PARAM_RESIZE_WIDTH

      public static final String PARAM_RESIZE_WIDTH
      Deprecated.
      This optional Integer or Float parameter specifies the width of the image after resizing. This may be expressed as pixels or it may represent a percentage of the original image width, depending on the value of the PARAM_IS_PERCENT_RESIZE parameter.
      If no value is specified for this parameter then the width of the image will be unchanged.
      If an image is being cropped and resized then the cropping happens first, followed by resizing of the cropped image.
      See Also:
    • PARAM_RESIZE_HEIGHT

      public static final String PARAM_RESIZE_HEIGHT
      Deprecated.
      This optional Integer or Float parameter specifies the height of the image after resizing. This may be expressed as pixels or it may represent a percentage of the original image width, depending on the value of the PARAM_IS_PERCENT_RESIZE parameter.
      If no value is specified for this parameter then the height of the image will be unchanged.
      If an image is being cropped and resized then the cropping happens first, followed by resizing of the cropped image.
      See Also:
    • PARAM_IS_PERCENT_RESIZE

      public static final String PARAM_IS_PERCENT_RESIZE
      Deprecated.
      This optional Boolean flag parameter specifies how the PARAM_RESIZE_HEIGHT and PARAM_RESIZE_WIDTH parameters are interpreted. If this parameter is set to true then the rendition height and width are represented as a percentage of the original image height and width. If this parameter is set to false then the rendition height and width are represented as pixels. This parameter defaults to false.
      See Also:
    • PARAM_MAINTAIN_ASPECT_RATIO

      public static final String PARAM_MAINTAIN_ASPECT_RATIO
      Deprecated.
      This optional Boolean flag parameter determines whether the rendered image maintains its original aspect ratio or is stretched to fit the specified height and width.
      If this parameter is true then the rendered image will always maintain its aspect ratio and will be resized to best fit within the given width and height. For example if an image starts at 100x200 pixels and it is resized to 50x50 pixels then the rendered image will actually be 25x50 pixels.
      If this parameter is false then the image will be stretched or compressed to fit the given height and width, regardless of the original aspect ratio.
      This parameter defaults to false
      See Also:
    • PARAM_RESIZE_TO_THUMBNAIL

      public static final String PARAM_RESIZE_TO_THUMBNAIL
      Deprecated.
      This optional Boolean flag parameter specifies a mode for dramatically shrinking large images in a performant way.
      If set to true the rendering process will be more performant for large images but the rendered image will be of lower quality.
      If set to false the rendering process will take longer but the resulting image will usually be of better quality.
      See Also:
    • PARAM_ALLOW_ENLARGEMENT

      public static final String PARAM_ALLOW_ENLARGEMENT
      Deprecated.
      This optional Boolean flag parameter specifies whether image resizing should produce an enlarged image, based on the resizing parameters and the size of the original image. If true (the default), images may be enlarged. If false, resize operations that would enlarge the image will instead produce a copy of the original image at the same size.
      Since:
      4.0
      See Also:
    • PARAM_COMMAND_OPTIONS

      public static final String PARAM_COMMAND_OPTIONS
      Deprecated.
      This optional String parameter specifies any additional ImageMagick commands, that the user wishes to add. These commands are appended after the various crop and resize options.
      See Also:
    • PARAM_AUTO_ORIENTATION

      public static final String PARAM_AUTO_ORIENTATION
      Deprecated.
      This optional Boolean flag parameter specifies if the engine should automatically rotate and image based on the EXIF orientation flag. If this parameter is set to true then the engine reads and resets the EXIF image profile setting 'Orientation' and then performs the appropriate 90 degree rotation on the image to orient the image, for correct viewing. This parameter defaults to true.
      See Also:
  • Constructor Details

    • ImageRenderingEngine

      public ImageRenderingEngine()
      Deprecated.
  • Method Details