Creating image borders with ImageMagick convert

Want to support HowtoForge? Become a subscriber!
Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:37. :: Shell

The command is:

convert -border 2x2 old.jpg new.jpg

This creates a new image (new.jpg) with a 2 pixel border from the image old.jpg.

To set the bordercolor to red, use this command:

convert -border 2x2 -bordercolor "#FF0000" old.jpg new.jpg

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.