快速的服务器端图像生成库?

发布于 2024-07-14 04:52:25 字数 609 浏览 7 评论 0原文

对于 Web 项目,我需要能够非常快速地生成 jpg 和动画 gif 图像。 作为服务器平台,我将使用 Linux 和 NekoVM (通过 在 apache 后面) mod_tora)。 由于 Haxeneko 没有用于图像生成的库我正准备写一篇自己的。

Neko本身是用c编写的,您可以简单地用c扩展VM编写共享库。 目前我们正在使用 libGD,它提供了我们需要的所有功能(调整大小、采样、复制图像、添加文本、另存为 jpeg 或动画 gif),当然还有很多我们不需要的东西。

目前这效果很好,但似乎有点慢。 是否有另一个流行的开放库可供我尝试用于我的目的(而且可能更快)?

For a web project I need the possibility to generate jpg and animated gif images very fast. As server platform I will use Linux and the NekoVM (behind a apache via mod_tora). As there is no library for image generation for Haxe and neko I am about to write a own one.

Neko itself is written in c, and you can simply extend the VM writing shared libraries with c. At the moment we playing arround with libGD, which offers all the features we need (resizing, sampling, copying images, adding text, save as jpeg or animated gif) and of course a lot of stuff we don't need.

At the moment this works great, but it seems to be a little bit slow. Is there another popular open library that I could try to use for my purposes (and that is maybe faster)?

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

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

发布评论

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

评论(2

酒废 2024-07-21 04:52:26

您是否尝试过 Magick++ 和/或 MagickCore?

您的下一个最佳选择是在 pprof 下运行 NekoVM,以找出 libGD 中哪些函数成本最高,并尝试通过更改调用代码来避免或优化对这些函数的使用。

Have you tried Magick++ and/or MagickCore?

Your next best bet is to run NekoVM under pprof to figure out which function(s) are the most costly in libGD, and try to avoid or optimize your use of those by changing your calling code.

轻拂→两袖风尘 2024-07-21 04:52:26

imlib2,我怀疑它支持动画gif。

There is imlib2, I doubt that it support animated gif's.

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