J.B. Mentzer wrote:
Matthew Woodward wrote:
Is the CFML file the cfimage tag is in located in the *same* directory as the image?
No. The index.cfm page includes a template in /wwwroot/dsp/. The pictures are in /wwwroot/images/[sm] or [lg]/[event_directory]/[filename].jpg

OK, so that explains why it was failing using ExpandPath("imagename.jpg")

This is successful, where path_offset = "../" :
            <cfset full_path = #path_offset#&"/stetsonimages/"&#img_lg#>
<cfimage action="grayscale" destfile="#ExpandPath("temp.jpg")#" srcfile="#ExpandPath(full_path)#" type="jpeg" nameconflict="makeunique">


But it still doesn't show a picture. How do I get it to do that?

I may be misunderstanding what you're asking, but <cfimage> is for manipulating images, not displaying them. What <cfimage> will do in this case is convert the image to grayscale, then write it out to temp.jpg *in the directory in which the cfimage tag is executing*, and then to display it on the page you'd use a regular HTML <img> tag.

Let me know if that doesn't make sense or wasn't what you were asking.
--
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