PHP 做 ImageMagick 所做的事情

发布于 2025-01-08 20:05:27 字数 424 浏览 2 评论 0原文

我需要找到一些 PHP 代码来基本上执行 ImageMagick 命令 ">compare -metric AE -fuzz 10% image1.png image2.png output.png" 的功能。我找到了 http://www.phpied.com/image-diff/ 代码并且它做得很好,但我确实需要 -fuzz 功能来过滤掉无关紧要的差异,并且如果有 -metric 标志功能来吐出差异计数,那就太好了,但我认为这很容易添加。

原因是我无法在网络服务器上安装 ImageMagick,因此我需要独立的代码或库。

关于代码或要查找的地方有什么建议吗?

谢谢

I need to find some PHP code to essentially do what the ImageMagick command ">compare -metric AE -fuzz 10% image1.png image2.png output.png" does. I have found the http://www.phpied.com/image-diff/ code and it does well, but I really need the -fuzz capabilities to filter out the insignificant differences and it would be nice to have the -metric flag functionality to spit out the difference count, but I would think that is pretty easy to add.

Reason for this is that I can't install ImageMagick on my web server so I need standalone code or libraries.

Any suggestions on code or places to look?

Thanks

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

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

发布评论

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

评论(1

白龙吟 2025-01-15 20:05:27

PHP 的 ImageMagick 函数有什么问题?

What's wrong with the ImageMagick functions of PHP?

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