Snippets - Modifications
NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.
For more examples check out the examples section of the website
Add borders - Anthony 17/6/2008
The image is resized first and one border added then the background with the next border is created.
<?php$cmd = " \( input.jpg -resize 250x250 -bordercolor coral4 -border 1x1 \) "." -size 300x250 xc:black -bordercolor coral4 -border 1x1 "."-gravity center +swap -composite ";exec("convert $cmd output.png");?>

For more examples and information check out the main Imagemagick section.
Add borders ViewApply rounded corners to an image View
Convert image to black and white View
Dividing an image View
Improve photos colours View
Pencil sketch View
Polaroid effect View
Transparent gradiant View
Venetian blind effect View