Adding Drop Shadows with PHP
(Page 1 of 7 )
This tutorial will teach you how you can add drop shadows dynamically to your images using PHP's GD image processing functions.
Imagine a scenario where you have an online photo album and the layout calls for drop shadows to be placed behind each image. It would be a hassle to manually add the shadow to each image... and actually modifying the original picture might not be possible depending on the circumstance. But if there're a few extra processor cycles available on the server, why not script the shadow using PHP?
The idea is simple: take the original image, create a slightly larger new image, draw a shadow on the new image, overlay the original image and send the results back to the requesting client. The drop shadow can be added on the fly!
This tutorial will teach you how you can add drop shadows dynamically to your images using PHP's GD image processing functions.
Next: Setting the Shadow Options >>
More Miscellaneous Articles
More By bluephoenix