Resize
From UBot Studio
(Difference between revisions)
Line 23: | Line 23: | ||
Running the script will resize the input image into the specified dimensions. | Running the script will resize the input image into the specified dimensions. | ||
− | Input Image | + | '''Input Image''' |
[[File:Capture.jpg]] | [[File:Capture.jpg]] | ||
− | Output Image | + | '''Output Image''' |
[[File:ResizedCapture.jpg]] | [[File:ResizedCapture.jpg]] | ||
− | Output Image with Preserved Aspect Ratio | + | '''Output Image with Preserved Aspect Ratio''' |
[[File:ResizedACapture.jpg]] | [[File:ResizedACapture.jpg]] |
Latest revision as of 16:56, 27 June 2017
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.
[edit] 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