alt, class, and style attributes for CFImage Output

I am currently working on a project to add alternate text attributes to displayed images on a website. Normally this is just a pain, and you have to be creative with your wording. However this case is a little different.

The current code resizes a given image and writes the result to the browser. However CFImage does not currently have the ability to add an alt attribute to the output. What to do?

Luckily after a little research, Ben Nadel has given me an easy way out. He has created a UDF to modify what is outputed to the browser, thus enabling the alt attribute. Another one saved!

Check it out at http://www.bennadel.com/blog/846-Styling-The-ColdFusion-8-WriteToBrowser-CFImage-Output.htm.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1. Contact Blog Owner