Page 1 of 1

SOLVED - How to create a top border only?

Posted: 2016-06-07T20:43:18-07:00
by teracow
Hello,

using: ImageMagick 6.8.9-8 Q16 x86_64 2016-05-05
on: OpenSUSE 13.2 64b

Is there a way to use montage or convert to add a border to my (thumbnail gallery of images) image but only on the top edge? I haven't been able to figure out how to do this on only one side of the resulting image. The examples (and my testing) all indicate that a border will be placed on opposite sides at the same time.

Re: How to create a top border only?

Posted: 2016-06-07T20:55:04-07:00
by GeeMack
teracow wrote:Is there a way to use montage or convert to add a border to my (thumbnail gallery of images) image but only on the top edge? I haven't been able to figure out how to do this on only one side of the resulting image. The examples (and my testing) all indicate that a border will be placed on opposite sides at the same time.
Try something using "-splice" like this...

Code: Select all

convert input.jpg -gravity north -background red -splice 0x24 output.jpg

Re: How to create a top border only?

Posted: 2016-06-07T21:21:09-07:00
by teracow
Ah, awesome! Thanks GeeMack. :)