托管使用 unix 命令“convert”的 PHP 网站在 IIS 上
我以为我已经检查过,以便在 IIS 上托管此网站时一切正常,但我错过了一个小细节。 显然,网站上的图像上传表单需要一个名为“convert”的 unix 命令或程序 (usr/bin/convert) 来调整图像大小、设置质量并生成图像缩略图。我认为它叫做 ImageMagick。
解决这个问题的最佳方法是什么?是否有适用于 Windows 的“转换”版本或同等版本?我想避免过多地重写上传系统。除了迁移到 UNIX 系统之外的所有建议都非常感谢。
I thought I had checked so that everything would work when hosting this website on IIS but I missed a tiny detail.
Apparantly an image upload form on the website requires a unix command or program called "convert" (usr/bin/convert) to resize, set quality and generate a thumbnail for the images. I think it's called ImageMagick.
What would be the best approach to fix this? Is there perhaps a "convert" version for Windows or equivalent? I want to avoid rewriting the upload system too much. All suggestions except moving to a unix system are greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
ImageMagick 有一个 Windows 版本:
ftp://mirror.aarnet.edu.au/ pub/imagemagick/windows/ (或使用任何其他镜像)
不过,您将需要管理员访问权限才能安装它。
There is a Windows version of ImageMagick:
ftp://mirror.aarnet.edu.au/pub/imagemagick/windows/ (or use any one of the other mirrors)
You will need administrator access to install it, though.
您可以在 Windows 上安装 ImageMagick
You can install ImageMagick on Windows
ImageMagick 也适用于 Windows:链接
ImageMagick is available for windows as well: Link
难道你不能在Windows上简单地安装convert吗? ImageMagick(转换二进制文件的来源)也有 Windows 版本。
Wouldn't you be able to simply install convert on Windows? ImageMagick (where the convert binary comes from) has a Windows version too.
这确实是 ImageMagick,他们在其网站上提供了 Windows 二进制文件:链接
That is indeed ImageMagick, they have windows binaries available on their website here: Link