rounded corners are not symmetrical

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
donahchoo
Posts: 8
Joined: 2018-07-20T13:38:38-07:00
Authentication code: 1152

rounded corners are not symmetrical

Post by donahchoo »

Hi,

I'm rounding corners on an image and I'm seeing that the corners are not symmetrical.

I've zoomed in and cropped to make it easier to see. The right corner does not extend down as var as the left. The same thing happens on the bottom corners. If you click the image it will load a larger version (slowly)

Image

Here's the command I'm trying:

Code: Select all

convert 2000x3000ss.jpg -auto-orient -resize "400x600^" -gravity Center -crop 400x600+0+0 \
 \( +clone -threshold -1 -negate -fill white -gravity Center -draw "roundRectangle 0,0 400,600 25,25" \) \
 -alpha Off -compose CopyOpacity -composite -border 800x200 -background "#f8f8f8" -alpha remove foo.jpg
Any suggestions on what I'm doing wrong? I can't tell if this is happening because the whole right edge is being clipped or if there's an issue with the corners...

Version: ImageMagick 6.9.3-1 Q16 x86_64 2016-01-25 http://www.imagemagick.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: rounded corners are not symmetrical

Post by fmw42 »

You are using a very old version of Imagemagick -- more than 3 years old. Try upgrading and then try your command again.
Post Reply