Pad image

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''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 =...")
 
(Parameters)
Line 2: Line 2:
  
 
== Parameters ==
 
== 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.
+
'''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.
+
'''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.
+
'''Top:''' (Optional) Specifies the thickness of the top border. Default is 0.
  
* '''Left:''' (optional) Specifies the thickness of the left 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.
+
'''Bottom:''' (Optional) Specifies the thickness of the bottom border. Default is 0.
  
* '''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. Default is white.
  
 
== Example ==
 
== Example ==

Revision as of 02:54, 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.

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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox