最近,我不得不将运行在Cold聚变MX7中的几个旧网站转移到运行Railo4.2.1的服务器上。这些站点都使用CFX_Image或CFX_OpenImage标记来调整上传图像的大小。看起来我可以重写它们来使用CFIMAGE,但我希望这些老网站能够正常运行,至少我知道。
有谁知道在Railo4.2.1中使用C++ CFX标记的方法吗?
发布于 2015-06-05 13:20:11
Railo4.2应该与CF 10兼容,但它不支持C++标记。就cfml语法而言,它本来是兼容的,但也有一些是railo不支持的,c++ cfx标记就是其中之一。它确实支持Java标记。阅读这篇文章
但是,您可以始终使用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">https://stackoverflow.com/questions/30650704
复制相似问题