|
image.resize
|
| |
|
description
Resize an image (supported file format depends on the used resizer defined in configuration file).
privilege-required
anyone
tx-support
false
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| allow-zoom |
boolean |
none |
false |
If false, the dimentions are unchanged event though they should have been greater than the original. |
| source-uri |
string |
none |
true |
URI of the source file. |
| width |
integer |
none |
false |
New width. |
| keep-aspect-ratio |
boolean |
none |
false |
Keep the aspect ratio of the image. |
| destination-uri |
string |
none |
false |
URI of the destination file. |
| height |
integer |
none |
false |
New height. |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Invalid source file. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
<nvd:command name="image.resize"
source-uri="/file/sourceimage.gif"
destination-uri="/file/destimage.gif"
width="100"
height="100"
allow-zoom="true"
keep-aspect-ratio="true" />
|
|