Creating image borders with ImageMagick convert

Do you like HowtoForge? Please consider supporting us by becoming 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.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com