Page 1 of 1

[RESOLVED] percentage border

Posted: 2016-02-20T09:32:56-07:00
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

Re: percentage border

Posted: 2016-02-20T10:10:26-07:00
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/

Re: percentage border

Posted: 2016-02-20T10:49:39-07:00
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?

Re: [RESOLVED] percentage border

Posted: 2016-02-20T11:43:43-07:00
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.

Re: [RESOLVED] percentage border

Posted: 2016-02-20T13:18:59-07:00
by samIam
thanks