Skip to main content
Inspiring
December 14, 2011
Answered

cannot use cfx_image custom tag

  • December 14, 2011
  • 2 replies
  • 1688 views

While trying to use cfx_image tag I am getting the following error and anyone give me an idea what I am missing?

Thanks

This topic has been closed for replies.
Correct answer stylish_dare15B9

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

2 replies

Community Expert
December 14, 2011

"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

Dave Watts, Eidolon LLC
stylish_dare15B9AuthorCorrect answer
Inspiring
December 22, 2011

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

Inspiring
December 14, 2011

Please click on image to enlarge