[RESOLVED] percentage border

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
samIam
Posts: 5
Joined: 2016-02-20T09:02:44-07:00
Authentication code: 1151

[RESOLVED] percentage border

Post by samIam »

As far as I understand, the command

mogrify -bordercolor Red -border 60%x60% *.jpg

should create a border of 60% (the number is so high because it really doesn't use 60%) around an image - images of different size should have a border that should appear to be the same width. However, this is not the case - it appears as if the % signs are ignored and a 60pixel border is created.

Windows 10 64 bit
ImageMagick 6.9.3-5 Q16 x64 2016-02-20
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: percentage border

Post by glennrp »

Thanks, Windows. You must escape the percent sign with another percent sign. Try -border 60%%x60%%

See the section "Using the DOS Shell and Batch FIles at http://www.imagemagick.org/Usage/windows/
samIam
Posts: 5
Joined: 2016-02-20T09:02:44-07:00
Authentication code: 1151

Re: percentage border

Post by samIam »

thanks - i found the solution in there - I had to double up on the % sign.
Do you recommend that I delete the post, since it really is NOT a bug?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: [RESOLVED] percentage border

Post by fmw42 »

I have edited your post title to mark it as RESOLVED. You can do that in the future by simply editing the title of your original post.
samIam
Posts: 5
Joined: 2016-02-20T09:02:44-07:00
Authentication code: 1151

Re: [RESOLVED] percentage border

Post by samIam »

thanks
Post Reply