I am using imagemagick to add a border to an image.
I can add the border with the following code:
convert source.jpg -shave 10x10 -bordercolor red -border 2 final.jpg
The code above generates this image:
However, what i need to generate is something like this:
If you look at the red border in the second image, you would see the difference between that image and the first image which i currently create using imagemagick.
Could someone please advise on this?
Thanks in advance.

