便携式 ImageMagick + Windows 上的 Rails 3.0

发布于 2024-12-17 09:25:03 字数 210 浏览 7 评论 0原文

此处放置文件的位置

便携式 Win32 静态,每像素 16 位。只需复制到您的主机并 运行(无安装程序,无 Windows 注册表项)。

用于载波?

Where to put files from here

Portable Win32 static at 16 bits-per-pixel. Just copy to your host and
run (no installer, no Windows registry entries).

to use for carrierwave?

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

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

发布评论

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

评论(1

乱世争霸 2024-12-24 09:25:03

为了使 ImageMagick 中的可执行文件可用,需要将它们添加到 PATH 变量中(以便convert.exe 和identify.exe 工作)。

您可以这样做

SET PATH=C:\path\to\imagemagick;%PATH%

,这将确保这些文件在其他文件之前位于 PATH 中。检查上述可执行文件是否需要存在于该目录中,如果它们位于另一个目录(例如 bin)内,则使用该目录。

CarrierWave 和 Paperclip 都将使用 PATH 中的工具,因此首先设置路径,然后启动 Rails 应用程序。

希望有帮助。

For the executables from ImageMagick be usable, they need to be added to the PATH variable (so convert.exe and identify.exe work)

You can do

SET PATH=C:\path\to\imagemagick;%PATH%

Which will ensure these files are in the PATH before others. Check that the above mentioned executables needs to be present in that directory, if they are inside another one (like bin) use that directory instead.

Both CarrierWave and Paperclip will use the tools from the PATH, so set the path first and then start your Rails application.

Hope that helps.

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