I wrote a PHP function that creates a shadow effect for an image object using only CSS styles. You could call the getImageWithCSSShadow function in code with various image objects - quickly creating shadows without using any graphics library calls (other than the ones involved in displaying the image in the first place). The PHP code is completely free - with no guarantees. It may or may not handle super-sized images very well. Not tested in all browsers - it seems that there is a small display variation in IE due to different interpretations of the CSS.
The CSS image shadow tool is here: CSS image shadow tool.
The tool generates the HTML that you'd need to make the same shadow effect on any webpage. So, if you have a one-time need for a shadow effect for your image, this will create your HTML.
For the web form or the function call, you need to supply the image URL, background color (to blend away to), shadow color (if blank, uses the image's average color - neat effect), shadow distance (1 to 20 pixels), blend strength, as well as "alt" tag for image (sets if left blank). Accepts color as HEX codes or by name.
Let me know what you think about it, and I can change the code. The source code only handles images, but could easily be rewritten to handle other objects (tables, paragraphs, blockquotes, etc.) as long as they have a set width and height. Also, a separate unit should probably be created to handle all other objects - any volunteers??
The CSS image shadow tool is here: CSS image shadow tool.
The tool generates the HTML that you'd need to make the same shadow effect on any webpage. So, if you have a one-time need for a shadow effect for your image, this will create your HTML.
For the web form or the function call, you need to supply the image URL, background color (to blend away to), shadow color (if blank, uses the image's average color - neat effect), shadow distance (1 to 20 pixels), blend strength, as well as "alt" tag for image (sets if left blank). Accepts color as HEX codes or by name.
Let me know what you think about it, and I can change the code. The source code only handles images, but could easily be rewritten to handle other objects (tables, paragraphs, blockquotes, etc.) as long as they have a set width and height. Also, a separate unit should probably be created to handle all other objects - any volunteers??

