Generate Images with Round Corners On-The-Fly Using PHP and GD Library
The code sample demonstrates the use of GD library to apply round corners on an image on-the-fly. It allows you to apply round corners of arbitrary size and color on a GIF, JPEG or PNG image. The source image is read on-demand and sent directly to the browser. This script can potentially eliminate the need of a graphics editing program to apply round corners on tons of images plus revising the images (e.g. when the color scheme or layout of the website changes) is not required.