J.B. Mentzer wrote:
<cfset full_path = #path_offset#&"/stetsonimages/"&#img_lg#>
<cfset dest_path = #path_offset#&"/stetsonimages/images/gallery/work/img_gs.jpg"> <cfimage action="edit" name="temp_img_lg" action="grayscale" destfile="#ExpandPath(dest_path)#" srcfile="#ExpandPath(full_path)#" type="jpeg" nameconflict="OVERWRITE" text="&copy; 2009 J. B. Mentzer">

You have two action attributes in this tag. Grayscale and Edit are two different actions, so while I'd kind of expect it to throw an error (I'd have to check the source to see what the behavior is), if the image is getting converted to grayscale but you're not seeing your text, then grayscale is the action it's using. If you want to do both grayscale AND add text, that would be two separate actions.

In the wiki, the nameconflict attribute has an optional value of "makequnique". In testing, I don't see another file created in /work/. If I wanted to use <cfimage> to convert a list of images to grayscale, as a workaround to "makeunique" not working, I could set 'nameconflict' to "overwrite', then include a dynamic filename in the destfile path variable.

I notice the same thing with nameconflict="makeunique"--something's definitely in the code to handle it so I'll dig a bit deeper and then (likely) file a bug because it doesn't seem to be doing what it's supposed to.

One other thing I failed to mention before is that there is a uridirectory attribute you can use and then you can provide relative web paths instead of full paths as we were discussing previously.

--
Matthew Woodward
[email protected]
http://www.mattwoodward.com/blog

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to