org.nuxeo.ecm.platform.imaging
Class ImagingComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.imaging.ImagingComponent
- All Implemented Interfaces:
- ImagingService, Adaptable, Component, Extensible
public class ImagingComponent
- extends DefaultComponent
- implements ImagingService
- Author:
- Max Stepanov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImagingComponent
public ImagingComponent()
resize
public InputStream resize(InputStream in,
int width,
int height)
- Description copied from interface:
ImagingService
- Resizes image.
- Specified by:
resize in interface ImagingService
- Returns:
- resized image file created in temporary folder
rotate
public InputStream rotate(InputStream in,
int angle)
- Description copied from interface:
ImagingService
- Rotates image.
- Specified by:
rotate in interface ImagingService
- Returns:
getImageMetadata
public Map<String,Object> getImageMetadata(InputStream in)
- Description copied from interface:
ImagingService
- Retrieves metadata from an image.
- Specified by:
getImageMetadata in interface ImagingService
- Returns:
- metadata
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.