public interface ImageConverter
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertImage(byte[] input,
String sourceFormat,
List<String> commands)
This functions converts an image by the given parameters
|
long |
convertImage(InputStream input,
String sourceFormat,
OutputStream out,
List<String> commands)
This functions converts an image by the given parameters
|
void |
init(Map<String,String> params) |
byte[] convertImage(byte[] input,
String sourceFormat,
List<String> commands)
input - an array of byte which represents the original imagesourceFormat - original image formatcommands - a List of Strings containing commands which are operations on the image which will be returned.bytes containing the new converted image.long convertImage(InputStream input, String sourceFormat, OutputStream out, List<String> commands) throws IOException
input - stream of byte which represents the original imagesourceFormat - original image formatout - stream of bytes containing the new converted image.commands - a List of Strings containing commands which are operations on the image which will be returned.IOException - When an error occurs when converting the imageMMBase 1.9-SNAPSHOT - ${javadoctimestamp}