Miscellaneous

  Home arrow Miscellaneous arrow Adding Drop Shadows with PHP
MISCELLANEOUS

Adding Drop Shadows with PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2005-01-24

    Table of Contents:
  • Adding Drop Shadows with PHP
  • Setting the Shadow Options
  • Opening the Canvas
  • Allocating the Color Pallette
  • Drawing on the Canvas
  • Overlay the Original
  • Combined Code

  •  
     

    SEARCH CODEWALKERS

    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.

    More Miscellaneous Articles
    More By bluephoenix

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Attention: Forum and Site Maintenance
    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength

    Developer Shed Affiliates

     



    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap