Class WebEnabledImageCreator


  • @Deprecated
    public class WebEnabledImageCreator
    extends java.lang.Object
    Deprecated.
    since 6.0, use RenditionMaker service instead
    The WebEnabledImageCreator class provides all functionality in order to create a web enabled image.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void create​(java.awt.image.BufferedImage image, java.lang.String defaultMimetype, java.lang.String dimensions, java.lang.String keepFormat, java.lang.String qualityStr, boolean force)
      Deprecated.
      since 6.0, use RenditionMaker service instead
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebEnabledImageCreator

        @Deprecated
        public WebEnabledImageCreator​(Asset asset,
                                      MimeTypeService mimeTypeService)
        Deprecated.
        since 6.0, use RenditionMaker service instead
    • Method Detail

      • create

        @Deprecated
        public void create​(java.awt.image.BufferedImage image,
                           java.lang.String defaultMimetype,
                           java.lang.String dimensions,
                           java.lang.String keepFormat,
                           java.lang.String qualityStr,
                           boolean force)
                    throws RepositoryException,
                           java.io.IOException
        Deprecated.
        since 6.0, use RenditionMaker service instead
        This method creates the web enabled rendition. if the force param is set to false than following check is executed: check if layer has to persisted. in case the layer is still equal than the ori file can be taken (save space).
        Parameters:
        image - buffered image used to create web enabled image
        defaultMimetype - default output mimetype
        dimensions - comma separated string containing max. with, max. height
        keepFormat - contains all mimetypes that should be kept (instead of using the default mimetype)
        qualityStr - image quality in percent
        force - if true than the webenabled image is always created nevertheless the ori image is smaller than the requested image dimensions
        Throws:
        RepositoryException - in case the web rendition could not be persisted
        java.io.IOException - while processing the image