I modified the code from http://www.cit.gu.edu.au/~anthony/graph ... humbnails/ for creating rounded corners so that it could be used all in one command.
On the site I changed this...
Code: Select all
convert -size 15x15 xc:white -draw 'circle 0,0 0,14' \
\( xc:none -draw 'circle 0,0 0,12' \) \
-compose DstOut -composite rounded_corner.png
convert thumbnail.gif -bordercolor black -border 2 -matte \
\( rounded_corner.png -flip -flop \) -gravity NorthWest -composite \
\( rounded_corner.png -flop \) -gravity SouthWest -composite \
\( rounded_corner.png -flip \) -gravity NorthEast -composite \
\( rounded_corner.png \) -gravity SouthEast -composite \
+matte -depth 8 -quality 95 rounded_corners.png
It now looks like this...
Code: Select all
[SRC]
-geometry 200x200
-bordercolor "#9FB08E"
-border 2
\( -size 15x15
xc:white
-draw 'circle 0,0 0,14'
\( xc:none
-draw
'circle 0,0 0,12' \)
-compose DstOut
-composite
-flip -flop \)
-gravity NorthWest
-composite
I would like to make the border and corner green.