Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.imaging
Class ImagingComponent

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.imaging.ImagingComponent
All Implemented Interfaces:
ImagingService, Adaptable, Component, Extensible

public class ImagingComponent
extends DefaultComponent
implements ImagingService

Author:
Max Stepanov

Constructor Summary
ImagingComponent()
           
 
Method Summary
 Map<String,Object> getImageMetadata(InputStream in)
          Retrieves metadata from an image.
 InputStream resize(InputStream in, int width, int height)
          Resizes image.
 InputStream rotate(InputStream in, int angle)
          Rotates image.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagingComponent

public ImagingComponent()
Method Detail

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

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.