|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.picture.ImagingComponent
public class ImagingComponent
Field Summary | |
---|---|
static String |
CONFIGURATION_PARAMETERS_EP
|
Constructor Summary | |
---|---|
ImagingComponent()
|
Method Summary | |
---|---|
Blob |
crop(Blob blob,
int x,
int y,
int width,
int height)
Crops an image. |
InputStream |
crop(InputStream in,
int x,
int y,
int width,
int height)
Deprecated. |
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)
Retrieves the ImageInfo of the Blob that is received as parameter. |
Map<String,Object> |
getImageMetadata(Blob blob)
Retrieves metadata from an image contained in a Blob . |
Map<String,Object> |
getImageMetadata(File file)
Deprecated. |
Map<String,Object> |
getImageMetadata(InputStream in)
Deprecated. |
String |
getImageMimeType(File file)
Returns the mime-type for the given file. |
String |
getImageMimeType(InputStream in)
Returns the mime-type for the given input stream. |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
Blob |
resize(Blob blob,
String finalFormat,
int width,
int height,
int depth)
Resizes image. |
InputStream |
resize(InputStream in,
int width,
int height)
Deprecated. |
Blob |
rotate(Blob blob,
int angle)
Rotates an image. |
InputStream |
rotate(InputStream in,
int angle)
Deprecated. |
void |
setConfigurationValue(String configurationName,
String configurationValue)
Sets the value of a configuration which could be used by the ImagingService. |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIGURATION_PARAMETERS_EP
Constructor Detail |
---|
public ImagingComponent()
Method Detail |
---|
@Deprecated public InputStream crop(InputStream in, int x, int y, int width, int height)
ImagingService
crop
in interface ImagingService
@Deprecated public InputStream resize(InputStream in, int width, int height)
ImagingService
resize
in interface ImagingService
@Deprecated public InputStream rotate(InputStream in, int angle)
ImagingService
rotate
in interface ImagingService
public Blob crop(Blob blob, int x, int y, int width, int height)
ImagingService
crop
in interface ImagingService
public Blob resize(Blob blob, String finalFormat, int width, int height, int depth)
ImagingService
resize
in interface ImagingService
public Blob rotate(Blob blob, int angle)
ImagingService
rotate
in interface ImagingService
blob
- a Blob containing the imageangle
- the angle of the rotation
@Deprecated public Map<String,Object> getImageMetadata(InputStream in)
ImagingService
getImageMetadata
in interface ImagingService
@Deprecated public Map<String,Object> getImageMetadata(File file)
ImagingService
getImageMetadata
in interface ImagingService
public Map<String,Object> getImageMetadata(Blob blob)
ImagingService
Blob
.
getImageMetadata
in interface ImagingService
public String getImageMimeType(File file)
ImagingService
getImageMimeType
in interface ImagingService
public String getImageMimeType(InputStream in)
ImagingService
getImageMimeType
in interface ImagingService
public ImageInfo getImageInfo(Blob blob)
ImagingService
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).
getImageInfo
in interface ImagingService
blob
- the blob of a picture
ImageInfo
of a blobpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public String getConfigurationValue(String configurationName)
ImagingService
getConfigurationValue
in interface ImagingService
configurationName
- the name of the configuration
public String getConfigurationValue(String configurationName, String defaultValue)
ImagingService
getConfigurationValue
in interface ImagingService
configurationName
- the name of the configurationdefaultValue
- the value of the configurationpublic void setConfigurationValue(String configurationName, String configurationValue)
ImagingService
setConfigurationValue
in interface ImagingService
configurationName
- the name of the configurationconfigurationValue
- the value of the configuration
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |