I'm trying to composite a legend on top of a graph using ImageMagick:
magick composite -gravity southeast '.\legend.png' -bordercolor black -border 1x1 '.\graph.png' '.\final.png'
As you can see the border doesn't have any padding or margin so it's not quite nice looking. However searching in the ImageMagick – Command-line Options page I see no option for those. Is there a way to do that?
This is my desired output. Notice the padding inside the box and the margin outside the box:

