only able to round 2 corners not 4

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
paul_xedos

only able to round 2 corners not 4

Post by paul_xedos »

Hi,
I'm hoping I'm doing something basic but attempting to create transparent round corners only the left hand side is rounding

Code: Select all

convert -size 210x110  xc:none -draw "roundRectangle 10,10 210,110 10,10" mask.gif
convert src-file.gif -matte mask.gif -compose DstIn -composite output-file.png
I've tried a few combinatons of values with the roundRectangle option (eg. roundRectangle 0,0 210,110 10,10 ) but I'm still getting straight sides on the right hand side.
Does anyone have any ideas what it could be?

Rgds
Paul
paul_xedos

Re: only able to round 2 corners not 4

Post by paul_xedos »

A bit more tweaking of the round rectangle params proved to be the answer
'roundRectangle 10,10 190,100 10,10'

Thanks
Paul
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: only able to round 2 corners not 4

Post by Bonzo »

Paul check out the link below; you do not need to know the image size.
http://www.imagemagick.org/Usage/thumbnails/#rounded
Post Reply