Add Comment
Create a Watermark using CFIMAGE Tutorial
ColdFusion Tutorial #22
I was thinking it would be cool if ColdFusion could watermark images for me. After about 30mins playing around I came up with this.
demo.cfm
First 2 lines I basically give both images a name. The reason the watermark is a png is I want to have the ability to use alpha channels. Next line I paste the watermark onto the image at 0x and 0y. I cheated and created the images the same size, but you could easily read the image info get the size then calculate where you want the watermark to be. The last line writes the image to the browser in the format of a jpeg.Demo
See this code running!
Download
Download this code as a zip!
Comments
Very good.I can use this!
There was a typo with the word ColdFusion.
Phillip Senn @ Tuesday 27 Nov 2007 - 01:29:52 AM
Thanks and I fixed the typo.
Dale Fraser @ Tuesday 27 Nov 2007 - 08:59:25 AM
Click button to add a comment
Author
Damon Ledet
Published
Monday 26 Nov 2007Original
This tutorial has been modified and published with permission of the author. The original tutorial can be found herehttp://blog.damonledet.com/index.cfm/2007/11/21/Using-CFIMAGE-to-create-a-watermark