Skip to main content

Extend an image

Extend transformation allows users to extends/pads the edges of the image with the provided background colour. This operation will always occur after resizing and extraction, if any. It is generally recommended to start with a high-quality image with a high resolution to avoid loss of image quality when extending the image.


Params

Top (t), Left (l), Bottom (b), Right (r)

The range for the top, right, bottom, and left parameters is from 0 to 500, with 10 as the default value. The default background color applied is black.

Background (bc)

The background colour for the padded area.

Uses hex value to determine the background color. The default background color is black.

The image is resized to 300x200px and then extended. This adds 10px padding to all the sides with background color as black.

Border Type (bt)

This parameter decides how to fill the extra space created by the pad parameters.

  • constant (default) - Fills extra space with the solid color specified by the parameter background. If background is not specified then the access space will be filled with the default black color.

  • replicate - Fills extra space by replicating the nearest pixels at the border of the original image.

  • reflect - Fills extra space by reflecting the image from the sides.

  • wrap - Fills extra space by wrapping the image at the opposite end of the side.