dacwe
dacwe

Reputation: 43504

Imagemagick: Create multiple borders

How do I create an image with multiple borders in imagemagick?

.------------.
|            |
| .--------. |
| |        | |
| |        | |
| '-----b1-' |
|            |
'---------b2-'

b1 and b2 are different borders with different properties. For example b1 can be 1px red and b2 10px blue.

Edit: Could it be done without creating an intermediate image?

Upvotes: 2

Views: 637

Answers (2)

Mark Setchell
Mark Setchell

Reputation: 207345

Sure, like this:

convert wizard: -bordercolor red -border 5 -bordercolor blue -border 10 result.jpg

enter image description here

Upvotes: 3

PeterMmm
PeterMmm

Reputation: 24630

It should be explained here: http://www.imagemagick.org/Usage/crop/#border .

For two borders you may run IM twice.

Upvotes: 1

Related Questions