Pad image
From UBot Studio
pad image is a command that adds a border around an image with customizable dimensions and color. After modifications, the image is saved as a new file.
Parameters
- Input Image: The path to the image that a border will be added to. This should be a valid file path on your system.
- Output Image: The path where the modified image will be saved. This should be a valid location on your system.
- Top: (optional) Specifies the thickness of the top border. Default is 0.
- Left: (optional) Specifies the thickness of the left border. Default is 0.
- Bottom: (optional) Specifies the thickness of the bottom border. Default is 0.
- Right: (optional) Specifies the thickness of the right border. Default is 0.
- Color: (optional) Specifies the color of the border. Default is white.
Example
pad image("input image.jpg", "output image.jpg", 10, 10, 10, 10, "black")
The output will be a new image saved at "output image.jpg" with a black border of 10 pixels on all four sides. The original image will not be altered.