Rounded Corners with border
Posted: 2017-09-07T15:03:27-07:00
Hello,
i have the following command that applies a rounded corner to an image, but I would like it to apply a border as well. I tried to apply a border to an image first and then take the newly border image and apply the command below but the border was cut off at the corners. If I can get he below command to apply a border with rounded corners, that would be ideal.
Any guidance on this would be great. Thank you in advance.
i have the following command that applies a rounded corner to an image, but I would like it to apply a border as well. I tried to apply a border to an image first and then take the newly border image and apply the command below but the border was cut off at the corners. If I can get he below command to apply a border with rounded corners, that would be ideal.
Code: Select all
convert image.png \( +clone -alpha extract \( -size 15x15 xc:black -draw 'fill white circle 15,15 15,0' -write mpr:arc +delete \) \( mpr:arc \) -gravity northwest -composite \( mpr:arc -flip \) -gravity southwest -composite \( mpr:arc -flop \) -gravity northeast -composite \( mpr:arc -rotate 180 \) -gravity southeast -composite \) -alpha off -compose CopyOpacity -composite -compose over \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge resultImage.png