Resize
From UBot Studio
This command will resize an image.
The command is an Image command.
Input Image File: The image file being resized.
Output Image File: The resulting output resized image.
New Width: The new width for the input image file.
New Height: The new width for the input image file.
Preserve Aspect Ratio: Setting this to 'Yes' will make sure the output image's width and height are proportional to one another by slightly altering the output image dimensions by a few pixels despite the numbers set in New Width and New Height parameters.
Example
resize("C:\\Users\\Downloads\\Capture.JPG","C:\\Users\\Downloads\\ResizedCapture.jpg",550,480,"Yes")
Running the script will resize the input image into the specified dimensions.
Input Image
Output Image
Output Image with Preserved Aspect Ratio