|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.builders.ConvertImageMagick
Converts images using ImageMagick.
| Field Summary | |
protected java.lang.String |
defaultImageFormat
The default image format. |
| Constructor Summary | |
ConvertImageMagick()
|
|
| Method Summary | |
protected java.lang.String |
color(java.lang.String c)
Translates MMBase color format (without #) to an convert color format (with or without); |
byte[] |
convertImage(byte[] input,
java.util.List commands)
This functions converts an image by the given parameters |
byte[] |
ConvertImage(byte[] input,
java.util.List commands)
Deprecated. Use convertImage |
protected java.lang.String |
getAlias(java.lang.String a)
MMBase has some abreviations to convert commands, like 's' for 'geometry'. |
void |
init(java.util.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 |
| Field Detail |
protected java.lang.String defaultImageFormat
| Constructor Detail |
public ConvertImageMagick()
| Method Detail |
public void init(java.util.Map params)
init in interface ImageConvertInterfaceparams - a Map of Strings containing informationn, this should contina the key's
ImageConvert.ConverterRoot and ImageConvert.ConverterCommand specifing the converter root....
public byte[] convertImage(byte[] input,
java.util.List commands)
convertImage in interface ImageConvertInterfaceinput - 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.
public byte[] ConvertImage(byte[] input,
java.util.List commands)
ConvertImage in interface ImageConvertInterfaceprotected java.lang.String color(java.lang.String c)
protected java.lang.String getAlias(java.lang.String a)
a - alias
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||