public interface ImagingService
Modifier and Type | Method and Description |
---|---|
Blob |
crop(Blob blob,
int x,
int y,
int width,
int height)
Crops an image.
|
String |
getConfigurationValue(String configurationName)
Returns the value a configuration which name is received as parameter.
|
String |
getConfigurationValue(String configurationName,
String defaultValue)
Returns the value a configuration which name is received as parameter.
|
ImageInfo |
getImageInfo(Blob blob)
|
Map<String,Object> |
getImageMetadata(Blob blob)
Retrieves metadata from an image contained in a
Blob . |
String |
getImageMimeType(File file)
Returns the mime-type for the given file.
|
String |
getImageMimeType(InputStream in)
Deprecated.
since 5.5
|
Blob |
resize(Blob blob,
String finalFormat,
int width,
int height,
int depth)
Resizes image.
|
Blob |
rotate(Blob blob,
int angle)
Rotates an image.
|
void |
setConfigurationValue(String configurationName,
String configurationValue)
Sets the value of a configuration which could be used by the
ImagingService.
|
Blob rotate(Blob blob, int angle)
blob
- a Blob containing the imageangle
- the angle of the rotationMap<String,Object> getImageMetadata(Blob blob)
Blob
.@Deprecated String getImageMimeType(InputStream in)
ImageInfo getImageInfo(Blob blob)
ImageInfo
of the Blob
that is received as
parameter.
The information provided by the ImageInfo, like width, height or format, is obtained using ImageMagick (see http://www.imagemagick.org/script/index.php for more details on ImageMagick).
blob
- the blob of a pictureImageInfo
of a blobString getConfigurationValue(String configurationName)
configurationName
- the name of the configurationString getConfigurationValue(String configurationName, String defaultValue)
configurationName
- the name of the configurationdefaultValue
- the value of the configurationCopyright © 2011 Nuxeo SA. All Rights Reserved.