是否可以在Railo中使用C ++ CFX标签?

时间:2015-06-04 17:47:07

标签: coldfusion railo

我最近不得不将运行在Coldfusion MX7中的几个旧网站移动到运行Railo 4.2.1的服务器上。这些站点都使用CFX_Image或CFX_OpenImage标记来调整上传的图像大小。看起来我可以将它们全部重写为使用CFIMAGE,但我希望让这些旧网站按原样运行,至少知道。

有没有人知道在Railo 4.2.1中使用C ++ CFX标签的方法?

1 个答案:

答案 0 :(得分:1)

Railo 4.2应该与CF 10兼容,但它不支持C ++标签。就cfml语法而言,它旨在兼容 但是有一些东西不支持,c ++ cfx标签就是其中之一。它支持Java CFX标记。 Read this

但您始终可以使用cfimage标记执行各种图像处理操作,包括图像大小调整。喜欢这个

<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">
相关问题