PHP 做 ImageMagick 所做的事情
我需要找到一些 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHP 的 ImageMagick 函数有什么问题?
What's wrong with the ImageMagick functions of PHP?