|
Table Of Contents
|
Path : Home » Action="ResizeBestFit"
Action="ResizeBestFit"
The "ResizeBestFit" action will resize an image the given image but will intelligently crop off the outer edges of the image to provide the best possible fit. In general when resizing images to match a specific width and height, this is the action to use. Both the width and height attributes should be passed.
Syntax<cfx_JImage action="resizeBestFit" file="FULL_PATH_TO_FILE" [outfile="FULL_PATH_TO_FILE"] width="WIDTH" height="HEIGHT"> Example<cfx_JImage action="ResizeBestFit" file="#baseImage#" outfile="#path#example_resizeBestFit_250x200.jpg" width="250" height="200"> |