Interface ImageTool
-
- All Known Implementing Classes:
AbstractImageTool
,Im4javaImageTool
public interface ImageTool
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
convert(File source, File destination, Set<AbstractImageToolOption> options, ImageToolDirective... directives)
Converts and resizes an image with dimensions and directivesvoid
convert(File source, File destination, ImageToolDirective... directives)
Converts an image with some directivesvoid
convert(File source, File destination, AbstractImageToolOption option, ImageToolDirective... directives)
Converts and resizes an image with dimensions and directivesstatic ImageTool
get()
String[]
getImageInfo(File source, ImageInfoType... infoTypes)
Gets aimed information from the given image file.boolean
isActivated()
Indicates if image tools are available
-
-
-
Method Detail
-
get
static ImageTool get()
-
isActivated
boolean isActivated()
Indicates if image tools are available- Returns:
-
getImageInfo
String[] getImageInfo(File source, ImageInfoType... infoTypes) throws org.silverpeas.kernel.SilverpeasException
Gets aimed information from the given image file.- Parameters:
source
- the image file.infoTypes
- the aimed types of info.- Returns:
- Throws:
org.silverpeas.kernel.SilverpeasException
-
convert
void convert(File source, File destination, ImageToolDirective... directives)
Converts an image with some directives- Parameters:
source
-destination
-directives
-
-
convert
void convert(File source, File destination, AbstractImageToolOption option, ImageToolDirective... directives)
Converts and resizes an image with dimensions and directives- Parameters:
source
-destination
-option
-directives
-
-
convert
void convert(File source, File destination, Set<AbstractImageToolOption> options, ImageToolDirective... directives)
Converts and resizes an image with dimensions and directives- Parameters:
source
-destination
-options
-directives
-
-
-