Imagick new features / An example of Imagick::roundCorners : Create and modify images : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Create and modify images »

 

Imagick new features / An example of Imagick::roundCorners


<?php
/* Create a new object and read the image */
$im = new Imagick'img.png' );
/* Round the corners. (yes, this is all that is needed.) */
$im->roundCorners3030 );
/* Output the image */
header"Content-Type: image/png" );
echo 
$im;
?>


HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Create and modify images