Adding border to SVG image Draw a <rect> round the image which is fill=”none”. You can use the stroke of the <rect> as the border.