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.ObjectDeprecated.since 6.0, useRenditionMakerservice insteadTheWebEnabledImageCreatorclass 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, useRenditionMakerservice instead 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcreate(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, useRenditionMakerservice instead 
 - 
 
- 
- 
Constructor Detail
- 
WebEnabledImageCreator
@Deprecated public WebEnabledImageCreator(Asset asset, MimeTypeService mimeTypeService)
Deprecated.since 6.0, useRenditionMakerservice 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 javax.jcr.RepositoryException, java.io.IOExceptionDeprecated.since 6.0, useRenditionMakerservice insteadThis method creates the web enabled rendition. if theforceparam is set tofalsethan 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- iftruethan the webenabled image is always created nevertheless the ori image is smaller than the requested image dimensions- Throws:
 javax.jcr.RepositoryException- in case the web rendition could not be persistedjava.io.IOException- while processing the image
 
 - 
 
 -