|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.images.ImageMagickImageConverter
Converts images using ImageMagick.
| Constructor Summary | |
ImageMagickImageConverter()
|
|
| Method Summary | |
protected String |
color(String c)
Translates MMBase color format (without #) to an convert color format (with or without); |
byte[] |
convertImage(byte[] input,
String sourceFormat,
List commands)
This functions converts an image by the given parameters |
void |
init(Map params)
This function initalises this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageMagickImageConverter()
| Method Detail |
public void init(Map params)
init in interface ImageConverterparams - a Map of Strings containing informationn, this should contain the key's
ImageConvert.ConverterRoot and ImageConvert.ConverterCommand specifing the converter root, and it can also contain
ImageConvert.DefaultImageFormat which can also be 'asis'.
public byte[] convertImage(byte[] input,
String sourceFormat,
List commands)
convertImage in interface ImageConverterinput - an array of byte which represents the original imagecommands - a List of Strings containing commands which are operations on the image which will be returned.
ImageConvert.converterRoot and ImageConvert.converterCommand specifing the converter root....
bytes containing the new converted image.protected String color(String c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||