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
Apply rounded corners to an image - IM Forum 19/6/2008
Add rounded corners to an image.
<?php// Get the dimensions of the original image$size = getimagesize('input.jpg');// Create a rounded corner mask to overlapp the image$cmd = " -size {$size[0]}x{$size[1]} xc:none -fill white "." -draw \"roundRectangle 0,0 {$size[0]},{$size[1]} 15,15\" "." input.jpg -compose SrcIn -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