CFX_Image File Sample Script

Here are two different actions you can use to test CFX_Image on your ColdFusion site. For more documentation on this, you can download the component from http://www.kolumbus.fi/jukka.manner/ and you'll find a "cfx_image_docs" folder within the file.

Read Action

<CFX_IMAGE ACTION="READ"
   FILE="#ExpandPath('AnyFile.jpg')#">

<CFOUTPUT>
  <IMG SRC="#GetFileFromPath(img_file)#">
</CFOUTPUT>


Resize Action

<CFX_IMAGE ACTION="RESIZE"
   FILE="#ExpandPath('AnyFile.jpg')#"
   OUTPUT="#ExpandPath('AnyFile.jpg')#"
   X="200">

<CFOUTPUT>
  <IMG SRC="#GetFileFromPath(img_file)#">
</CFOUTPUT>

Add Feedback