Pads the image by the number of pixels specified. Must be a positive integer.
If the image is requested without a specified width and height, padding will be added to the dimensions of the image. If the image is cropped or resized, the image (including the padding) will be sized to fit within the requested dimensions.
bg is set, the padded area will be filled in with its value; otherwise it will be transparent if the output format allows transparency, and white if not.
There are four additional parameters for padding individual sides of an image, allowing for uneven padding. When used in conjunction with
pad, these parameters will adjust the padding of the specified side of the image:
See the API specification for more information about this parameter's value ranges and format.