Package com.day.cq.dam.commons.util
Class WebEnabledImageCreator
java.lang.Object
com.day.cq.dam.commons.util.WebEnabledImageCreator
Deprecated.
The
WebEnabledImageCreator
class provides all functionality in
order to create a web enabled image.-
Constructor Summary
ConstructorsConstructorDescriptionWebEnabledImageCreator
(Asset asset, MimeTypeService mimeTypeService) Deprecated.since 6.0, useRenditionMaker
service instead -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(BufferedImage image, String defaultMimetype, String dimensions, String keepFormat, String qualityStr, boolean force) Deprecated.since 6.0, useRenditionMaker
service instead
-
Constructor Details
-
WebEnabledImageCreator
Deprecated.since 6.0, useRenditionMaker
service instead
-
-
Method Details
-
create
@Deprecated public void create(BufferedImage image, String defaultMimetype, String dimensions, String keepFormat, String qualityStr, boolean force) throws RepositoryException, 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 persistedIOException
- while processing the image
-
RenditionMaker
service instead