Package com.day.cq.dam.commons.util
Class WebEnabledImageCreator
- java.lang.Object
-
- com.day.cq.dam.commons.util.WebEnabledImageCreator
-
@Deprecated public class WebEnabledImageCreator extends java.lang.Object
Deprecated.since 6.0, useRenditionMaker
service insteadTheWebEnabledImageCreator
class provides all functionality in order to create a web enabled image.
-
-
Constructor Summary
Constructors Constructor Description WebEnabledImageCreator(Asset asset, MimeTypeService mimeTypeService)
Deprecated.since 6.0, useRenditionMaker
service instead
-
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, useRenditionMaker
service instead
-
-
-
Constructor Detail
-
WebEnabledImageCreator
@Deprecated public WebEnabledImageCreator(Asset asset, MimeTypeService mimeTypeService)
Deprecated.since 6.0, useRenditionMaker
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, useRenditionMaker
service insteadThis method creates the web enabled rendition. if theforce
param is set tofalse
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 imagedefaultMimetype
- default output mimetypedimensions
- comma separated string containing max. with, max. heightkeepFormat
- contains all mimetypes that should be kept (instead of using the default mimetype)qualityStr
- image quality in percentforce
- iftrue
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 persistedjava.io.IOException
- while processing the image
-
-