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, useRenditionMakerservice instead -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(BufferedImage image, String defaultMimetype, String dimensions, String keepFormat, String qualityStr, boolean force) Deprecated.since 6.0, useRenditionMakerservice instead
-
Constructor Details
-
WebEnabledImageCreator
Deprecated.since 6.0, useRenditionMakerservice 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, 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:
RepositoryException- in case the web rendition could not be persistedIOException- while processing the image
-
RenditionMakerservice instead