Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable not accepting in tag

Status
Not open for further replies.

demiancurran

Programmer
Sep 20, 2006
19
CA
I am attempting to place a variable [value] in a ColdFusion tag called imageCFC. For some reason it is rejecting the value and giving me an error.
Below is the code I am using followed by the error I am receiving.

Thanks so much for any help I can get with this. I have tried a number of things and cannot seem to crunch this one.

Code:
<CFX_ImageInfoSE FILENAME="#myfilepath##uploadedImage#">

<!--- Setting the variable described above [value] --->	
<cfset wid = ImageInfoSE.width-10>
	
<!--- Invoke image.cfc component --->
<cfset imageCFC = createObject("component","image") />

<!--- scaleX image to 500px wide and add watermark --->
<cfset scaleX500 = imageCFC.scaleX("", "#myfilepath##uploadedImage#", "", 500)>

<!--- Here I am trying to call the variable set above #wid# --->
<cfset scaleX500_2_watermark = imageCFC.watermark(scaleX500.img,"" ,"","#myfilepath#mark.png",0.9,#wid#, 50,"#myfilepath##uploadedImage#")>

Here is the error I am getting...

The selected method drawImage was not found.

Either there are no methods with the specified method name and argument types, or the method drawImage is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.

The error occurred in D:\XXXXX\XXXXXXXXXXX\image.cfc: line 886
884 : op.init(at, rh);
885 :
886 : gfx.drawImage(wmImage, op, arguments.placeAtX, arguments.placeAtY);
887 : gfx.dispose();
888 :
 
try a hard coded value? does #myfilepath##uploadedImage# actually have the correct value?

I know nothing about the 3rd party CFX tag you're using.



Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top