Function: enlarge

Function: enlarge

Usage

 enlarge(input: image, border_size: amount_to_enlarge)

Enlarge an image by putting a transparent border around it. The border size is given in percentages of the image size, so border_size: 1 makes the image three times as large by putting a border of 100% the size on all sides.

Parameters

Parameter Type Description
input image Image to enlarge
border_size real number Amount of border to add

Examples

 enlarge(input: "image1.png", border_size: 0.1)  ==  [[Image]]
 enlarge(input: "image1.png", border_size: 0.1) == "image_enlarge.png"