Creating a rounded corner
Posted: 2006-09-25T16:03:41-07:00
Hello,
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...
It now looks like this...
My problem is since I do not fully understand the code I can't seem to figure out how to change the color of the rounded border. Any ideas on how I can do this.
I would like to make the border and corner green.
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.