@Service(value="blImageArtifactProcessor") public class ImageArtifactProcessor extends Object implements ArtifactProcessor
| Modifier and Type | Field and Description |
|---|---|
protected float |
compressionQuality |
protected EffectsManager |
effectsManager |
protected String[] |
supportedUploadTypes |
| Constructor and Description |
|---|
ImageArtifactProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Operation[] |
buildOperations(Map<String,String> parameterMap,
InputStream artifactStream,
String mimeType) |
InputStream |
convert(InputStream artifactStream,
Operation[] operations,
String mimeType) |
float |
getCompressionQuality() |
ImageMetadata |
getImageMetadata(InputStream artifactStream) |
String[] |
getSupportedUploadTypes() |
boolean |
isSupported(InputStream artifactStream,
String filename) |
void |
setCompressionQuality(float compressionQuality) |
void |
setSupportedUploadTypes(String[] supportedUploadTypes) |
protected BufferedImage |
stripAlpha(BufferedImage image) |
protected EffectsManager effectsManager
protected String[] supportedUploadTypes
protected float compressionQuality
public boolean isSupported(InputStream artifactStream, String filename)
isSupported in interface ArtifactProcessorpublic Operation[] buildOperations(Map<String,String> parameterMap, InputStream artifactStream, String mimeType)
buildOperations in interface ArtifactProcessorpublic ImageMetadata getImageMetadata(InputStream artifactStream) throws Exception
Exceptionpublic InputStream convert(InputStream artifactStream, Operation[] operations, String mimeType) throws Exception
convert in interface ArtifactProcessorExceptionprotected BufferedImage stripAlpha(BufferedImage image)
public String[] getSupportedUploadTypes()
public void setSupportedUploadTypes(String[] supportedUploadTypes)
public float getCompressionQuality()
public void setCompressionQuality(float compressionQuality)
Copyright © 2017. All rights reserved.