Search code examples
coldfusionrailo

Is it possible to use C++ CFX tags in Railo?


I recently had to move several older websites that were running in Coldfusion MX7 onto a server running Railo 4.2.1. These sites all use either CFX_Image or CFX_OpenImage tags for resizing uploaded images. It looks like I could rewrite them all to use CFIMAGE, but I'm hoping to get these older sites working as is, at least for know.

Does anyone know of a way to use the C++ CFX tags in Railo 4.2.1?


Solution

  • Railo 4.2 is supposed to be compatible with CF 10 but it doesn't support C++ tags. It's intended to be compatible as far as cfml syntax goes but there are however a few things railo doesn't support, c++ cfx tags being one of them. It does support Java CFX tags. Read this

    But you can always use cfimage tag to perform various image manipulation operations including image resizing. Like this

    <cfimage 
        action = "resize" 
        height = "number of pixels|percent%" 
        source = "absolute pathname|pathname relative to the web root|URL|#cfimage variable#" 
        width = "number of pixels|percent%" 
        destination = "absolute pathname|pathname relative to the web root" 
        isBase64 = "yes|no" 
        name = "cfimage variable" 
        overwrite = "yes|no">