Pad image
(→Parameters) |
(→Parameters) |
||
Line 14: | Line 14: | ||
'''Right:''' (Optional) Specifies the thickness of the right 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. | + | '''Color:''' (Optional) Specifies the color of the border. This can be the common name for a color, or its hex code (like #FFFFFF). Default is white. |
== Example == | == Example == |
Latest revision as of 02:55, 4 July 2023
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.
[edit] 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. This can be the common name for a color, or its hex code (like #FFFFFF). Default is white.
[edit] 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.