Copy link to clipboard
Copied
While trying to use cfx_image tag I am getting the following error and anyone give me an idea what I am missing?
Thanks
1 Correct answer
Yes there was a problem with bits. I was trying to run a 32bit dll in 64bit CF.
Fix:
Rather than reinstalling my CF I gave up using cfx_image tag as I found a better option.
The builtin CF function ImageResize:
<!--- This resizes an image to attributes.thumbsize of original size and resize it proportionately to the new width. Notice that the height is blank.--->
<cfset uploadedImage=ImageNew("#attributes.imagepath#\#photo#")>
<cfset ImageResize(uploadedImage,"#attributes.thumbsize#",""
...Copy link to clipboard
Copied
Please click on image to enlarge
Copy link to clipboard
Copied
"Unable to load library"
Is the DLL where CF is looking for it?
Have you validated that the DLL is intact? (checksum, Dependency Checker, etc)
What version of CF are you using? 32- or 64-bit?
Have you considered using the built-in image manipulation that newer versions of CF provide, instead?
Dave Watts, CTO, Fig Leaf Software
Copy link to clipboard
Copied
Yes there was a problem with bits. I was trying to run a 32bit dll in 64bit CF.
Fix:
Rather than reinstalling my CF I gave up using cfx_image tag as I found a better option.
The builtin CF function ImageResize:
<!--- This resizes an image to attributes.thumbsize of original size and resize it proportionately to the new width. Notice that the height is blank.--->
<cfset uploadedImage=ImageNew("#attributes.imagepath#\#photo#")>
<cfset ImageResize(uploadedImage,"#attributes.thumbsize#","","highestQuality",1)>
more details about this function can be found at:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_39.html
Copy link to clipboard
Copied
Thanks for you help and sorry for replying so late. In fact I had more higher priority tasks in my list so I wasn't able to try this out. Now when I tried this, I've posted the solution so it can help others.
Thanks again

