I gave up. Nothing that resolved the issue was a valid long term
solution. I've watermarked the images manually and removed all of the
code to handle it on the fly.
I'll still use it in a tool that watermarks the images as I upload them I guess.
So now it is very simple...
<cfdirectory name="variables.mastImages" action="list"
directory="#expandPath('/images/mastimages/')#" filter="*.jpg" />
<cfset variables.mastImg = randRange(1,variables.mastImages.recordcount) />
<cfheader name="Content-Disposition" value="inline;
#variables.mastImages['name'][variables.mastImg]#">
<cfcontent
type="image/jpg" reset="true" file="#expandpath('/images/mastimages/'
& variables.mastImages['name'][variables.mastImg])#" />
Thanks for all the input.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334263
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm