Thanks for the ideas, a few seconds per display is definitely unacceptable with any sort of volume. Gets tricky when you have hundreds to update at a time and obviously can't run images through again which have already been watermarked. Many of the images are uploaded/updated via the web in which case it can easily be handled at that time. When batches are done (which is often times hundreds or thousands, and with no way to tell which are new and which are just duplicate copies of what already exists, particularly after the old ones are watermarked/modified...) it might be smart to just setup a temp directory with a script that could either be on a schedule or manually invoked to watermark and move. Keeping a second folder of "clean" images offline to pull form would be fine, anyone have any suggestions on a good command line utility?
-----Original Message----- From: Bobby Hartsfield [mailto:bo...@acoderslife.com] Sent: Thursday, February 03, 2011 9:29 AM To: cf-talk Subject: RE: Watermarking images This can easily be done with cfimage. I just wanted to offer my experience with doing it on the fly. If you hit my site, in my signature, you will see a watermarked mast head image. If you refresh, you will get another. My super cool plan was to have the watermark added on each request. It worked quickly enough that it was no problem at all... however, the image had some very strange caching issues on the browser side... I tried everything I could think of to get around it but eventually ended up watermarking the images and saving the watermarked file for display. When a new image is added to a directory, I can click a button to loop oever them, watermark them and move them to the directory that they will be displayed from. Ray Camden offered a good idea for a gateway that would "watch" the diectory and handle the watermakrs without any interaction... But my suggestion is to, somehow, watermark the images permanently and use those for display. You can always keep an original copy and watermark them again later (if your watermark changes or something). But the headaches of doing it on the fly became too much to worry with and I ended up saving watermarked versions instead. You can see some code and more detail here: http://acoderslife.com/index.cfm/blog/Mast-head-image-bug The code there is what I was using to watermark on the fly. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: wabba [mailto:must...@wabba.net] Sent: Thursday, February 03, 2011 11:15 AM To: cf-talk Subject: Watermarking images Anyone have a good tool for watermarking images either as they are displayed to the client, or on the backside as they are uploaded? Working on a parts database of 30k+ items and the part images are updated frequently. We regularly receive images discs or flash drives from manufacturers which we then just dump over the top of the old images, so doing the watermarking on the fly ensures it's always displayed without having to do the entire thing over. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341858 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm