Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cannot use cfx_image custom tag

Explorer ,
Dec 13, 2011 Dec 13, 2011

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

edit me.png

Thanks

1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Dec 22, 2011 Dec 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#",""

...
Translate
Explorer ,
Dec 14, 2011 Dec 14, 2011

Please click on image to enlarge

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2011 Dec 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 22, 2011 Dec 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 22, 2011 Dec 22, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources