Class IMImageUtils.ImageMagickCaller
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.core.im.IMImageUtils.ImageMagickCaller
-
- Enclosing class:
- IMImageUtils
public abstract static class IMImageUtils.ImageMagickCaller extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected File
sourceFile
protected File
targetFile
protected File
tmpFile
-
Constructor Summary
Constructors Constructor Description ImageMagickCaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Blob
call(Blob blob, String targetExt, String commandName)
abstract void
callImageMagick()
protected File
createTempSource(Blob blob, String ext)
protected String
getFilename(Blob blob, String targetExt)
protected void
makeFiles(Blob blob, String targetExt)
-
-
-
Field Detail
-
sourceFile
protected File sourceFile
-
targetFile
protected File targetFile
-
-
Constructor Detail
-
ImageMagickCaller
public ImageMagickCaller()
-
-
Method Detail
-
makeFiles
protected void makeFiles(Blob blob, String targetExt) throws CommandNotAvailable, CommandException, IOException
-
createTempSource
protected File createTempSource(Blob blob, String ext) throws IOException
- Throws:
IOException
-
getFilename
protected String getFilename(Blob blob, String targetExt)
-
callImageMagick
public abstract void callImageMagick() throws CommandNotAvailable, CommandException
- Throws:
CommandNotAvailable
CommandException
-
-