Specifies a border size measured in pixels that will be rendered over the image.
If you need to specify a border on specific sides of the image you can use border-top, border-right, border-bottom and border-left.
border-color parameter is used to set the border color.
Values
This parameter accepts integer values in the range 0 to 500 with 0 disabling border rendering:
-
1: specify a border size of 1 pixel.
-
500: specify a border size of 500 pixels.
If no color is specified using parameter border-color a non transparent white color will be used by default.
Examples
Specify a border size of 40 pixels using param border=40 without setting any border color:
GET
https://assets.imglab-cdn.net/woman.jpeg?border=40
Specify a border size of 40 pixels using lightgray border color with params border=40 and border-color=lightgray:
GET
https://assets.imglab-cdn.net/woman.jpeg?border=40&border-color=lightgray
Specify a border size of 40 pixels using a transparent gray color with params border=40 and border-color=211,211,211,128:
GET
https://assets.imglab-cdn.net/woman.jpeg?border=40&border-color=211%2C211%2C211%2C128