RenditionMaker
service instead@Deprecated
public class WebEnabledImageCreator
extends java.lang.Object
WebEnabledImageCreator
class provides all functionality in
order to create a web enabled image.Constructor and Description |
---|
WebEnabledImageCreator(Asset asset,
MimeTypeService mimeTypeService)
Deprecated.
since 6.0, use
RenditionMaker service instead |
Modifier and Type | Method and 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 |
@Deprecated public WebEnabledImageCreator(Asset asset, MimeTypeService mimeTypeService)
RenditionMaker
service instead@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
RenditionMaker
service insteadforce
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).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
- if true
than the webenabled image is always created
nevertheless the ori image is smaller than the requested image dimensionsRepositoryException
- in case the web rendition could not be persistedjava.io.IOException
- while processing the imageCopyright © 2010 - 2020 Adobe. All Rights Reserved