create (commandName : string, [arg : any]*) : nodeset
With this method, all commands available in the imageserver can be executed. An overview of the available commands, their syntax and the possible parameters can be seen on their imageserver. The syntax of the method can be seen in the following example:
Here the command "resample" is executed with the parameters “is:createSize(400,300)” and 'HanningFilter'. The command "resample" serves for adapting the picture size to a desired format. As can be seen in the example, the method is called with the name and parameters of the command as transfer values separated by a comma. The maximum number of parameters of the command is 7.
In the following example, a possible use of the method is shown:
In this example, an existing picture is adjusted to the size of 300 x 400 and then saved in JPEG picture format with 80% picture quality.