|
Table Of Contents
|
Path : Home » Action="Resize"
Action="Resize"
The "Resize" action will stretch will load an image and stretch it to the given width and height. If only the "width" attribute is provided, the height will be automatically calculated and vice-versa. If the "outFile" parameter is not provided, the result will be saved back to the same file.
Syntax<cfx_JImage action="resize" file="FULL_PATH_TO_FILE" [outfile="FULL_PATH_TO_FILE"] [width="WIDTH"] [height="HEIGHT"]> Example 1<cfx_JImage action="resize" file="#baseImage#" outfile="#path#example_resize_50x50.png" width="50" height="50"> Example 2<cfx_JImage action="resize" file="#baseImage#" outfile="#path#example_resize_120.png" width="120"> |