Reputation: 43504
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
Reputation: 207345
Sure, like this:
convert wizard: -bordercolor red -border 5 -bordercolor blue -border 10 result.jpg
Upvotes: 3
Reputation: 24630
It should be explained here: http://www.imagemagick.org/Usage/crop/#border .
For two borders you may run IM twice.
Upvotes: 1