Resize
From UBot Studio
(Difference between revisions)
(Created page with "This command will resize an image. The command is an Image command. '''Input Image File:''' '''Output Image File:''' '''New Width:''' '''New Height:''' '''Preserv...") |
|||
(One intermediate revision by one user not shown) | |||
Line 3: | Line 3: | ||
The command is an [[Image]] command. | The command is an [[Image]] command. | ||
− | '''Input Image File:''' | + | '''Input Image File:''' The image file being resized. |
− | '''Output Image File:''' | + | '''Output Image File:''' The resulting output resized image. |
− | '''New Width:''' | + | '''New Width:''' The new width for the input image file. |
− | '''New Height:''' | + | '''New Height:''' The new width for the input image file. |
− | '''Preserve Aspect Ratio:''' | + | '''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 == | == Example == | ||
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: | + | [[File:Capture.jpg]] |
− | Output Image | + | '''Output Image''' |
− | [[File: | + | [[File:ResizedCapture.jpg]] |
+ | |||
+ | |||
+ | '''Output Image with Preserved Aspect Ratio''' | ||
+ | |||
+ | [[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