使用 CFIMAGE 在 Railo 中验证码无法正常工作

发布于 2024-09-10 17:08:26 字数 551 浏览 6 评论 0 原文

我最近在 Railo 中使用 CFIMAGE 玩验证码,出于某种原因我 无法使其正常工作。它生成图像并且它 在浏览器中显示,但字体看起来很奇怪,而且字母 全部放置,通常一半在顶部,另一半在顶部 图像的底部。

这是我的代码:

这就是它生成的内容:
http://lecws.com/captcha.cfm

我缺少什么吗?我必须安装字体吗 服务器?我在 CentOS 5.3 64 位上运行 Railo 3.1.2.001 Final。 任何帮助表示赞赏。

乔治

I was playing around with CAPTCHA in Railo using CFIMAGE recently and for some reason I
couldn't make it work correctly. It generates the image and it
shows up in the browser, but the font looks strange and the letters
are placed all over, usually one half on top and the other on the
bottom of the image.

Here's my code:

<cfimage action="captcha" width="250" height="80" text="RAILO"
fonts="arial,verdana,times new roman, courier" fontsize="20"
difficulty="low" />

And this is what it generates:
http://lecws.com/captcha.cfm

Is there anything I'm missing? Do I have to install fonts on the
server? I'm running Railo 3.1.2.001 final on CentOS 5.3 64bit.
Any help is appreciated.

George

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿看小鸭子会跑 2024-09-17 17:08:26

这是解决方案,以防其他人遇到此问题。

我必须在我的服务器上安装字体。我使用本页上接受的解决方案来做到这一点:
www.experts-exchange.com/OS/Linux/Administration/Q_23644439.html

然后我必须重新启动 Railo,以便它读取新字体并解决问题。

非常感谢 Railo Google 论坛为我提供的帮助。

Here's the solution in case someone else runs into this issue.

I had to install fonts on my server. I did so using the accepted solution on this page:
www.experts-exchange.com/OS/Linux/Administration/Q_23644439.html

Then I had to restart Railo so that it read the new fonts and the problem was fixed.

Big thanks to the Railo Google Group for helping me with this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文