Hello,

I am trying to figure out how to make ImagePaste() work.  I keep
getting attribute passed was not an image.

Here is the coding I am trying:

<cfimage( srcfile="#upcDir#backing.png", action="info")>
<cfdump var="#cfimage#">
<cfset upc = imageNew( src="#upcDir#backing.png")>
<cfdump var="#upc#">
<cfset pImage = imageRead( src="#upcDir#QZL.png")>
<cfdump var="#pImage#">
<cfset error = imageResize( name=pImage, width="100%", height="120")>
<cfset error = imagePaste( name=cfimage,name2=cfimage,x=0,y=0 )>
<cfdump var="#pImage#">

On this line: <cfset error =
imagePaste( name=cfimage,name2=cfimage,x=0,y=0 )> I have tried all
kinds of different combinations, from "#var#" to #var# to as it is.  I
tried with all three variables and different combinations.  I even did
the cfimage tag as a last resort and all I get back is attribute
passed was not an image.

Any suggestions?

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

     Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to