to set height and width of the border, e.g. "10x8". In addition image_frame allows for adding shadow by setting an offset e.g. "20x10+7+2".
bg: background color
azimuth: position of light source
elevation: position of light source
Details
The image_composite function is vectorized over both image arguments: if the first image has n frames and the second m frames, the output image will contain n * m frames.
The image_border function creates a slightly larger solid color frame and then composes the original frame on top. The image_frame function is similar but has an additional feature to create a shadow effect on the border (which is really ugly).
Examples
# Compose images using one of many operatorsimlogo <- image_scale(image_read("logo:"),"x275")rlogo <- image_read("https://jeroen.github.io/images/Rlogo-old.png")# Standard is atopimage_composite(imlogo, rlogo)# Same as 'blend 50' in the command lineimage_composite(imlogo, rlogo, operator ="blend", compose_args="50")# Offset can be geometry or gravityimage_composite(logo, rose, offset ="+100+100")image_composite(logo, rose, gravity ="East")# Add a border frame around the imageimage_border(imlogo,"red","10x10")image_frame(imlogo)image_shadow(imlogo)image_shade(imlogo)