Class IMImageUtils
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.core.im.IMImageUtils
-
- All Implemented Interfaces:
ImageUtils
public class IMImageUtils extends Object implements ImageUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IMImageUtils.ImageMagickCaller
-
Constructor Summary
Constructors Constructor Description IMImageUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
convertToPDF(Blob blob)
Blob
crop(Blob blob, int x, int y, int width, int height)
boolean
isAvailable()
Returnstrue
if this ImageUtils can be used,false
otherwiseBlob
resize(Blob blob, String finalFormat, int width, int height, int depth)
Blob
rotate(Blob blob, int angle)
-
-
-
Constructor Detail
-
IMImageUtils
public IMImageUtils()
-
-
Method Detail
-
crop
public Blob crop(Blob blob, int x, int y, int width, int height)
- Specified by:
crop
in interfaceImageUtils
-
resize
public Blob resize(Blob blob, String finalFormat, int width, int height, int depth)
- Specified by:
resize
in interfaceImageUtils
-
rotate
public Blob rotate(Blob blob, int angle)
- Specified by:
rotate
in interfaceImageUtils
-
convertToPDF
public Blob convertToPDF(Blob blob)
- Specified by:
convertToPDF
in interfaceImageUtils
-
isAvailable
public boolean isAvailable()
Description copied from interface:ImageUtils
Returnstrue
if this ImageUtils can be used,false
otherwise- Specified by:
isAvailable
in interfaceImageUtils
-
-