magick input.png -bordercolor black -border 10 output.png

Category: Media & Conversion

magick input.png -bordercolor black -border 10 output.png

Add a border around an image

Adds a 10-pixel black frame around the image. -bordercolor picks the frame color and -border the width. Combine with -gravity for asymmetric frames.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.