Matthew Woodward wrote:
> J.B. Mentzer wrote:
>> Matthew Woodward wrote:

>> 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. 
Oh, ok.


> 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.
Got it.


<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">

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.

Also, the text string isn't appearing on the image created by the tag 
("img_gs.jpg").

> Let me know if that doesn't make sense or wasn't what you were asking.
Beginning to make sense. :-)

Thanks,

* JB *

JB Mentzer


--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to