【问题标题】:TYPO3 can't read or create pdf thumbnails with imagemagick or graphicsmagickTYPO3 无法使用 imagemagick 或 graphicsmagick 读取或创建 pdf 缩略图
【发布时间】:2017-11-25 17:35:12
【问题描述】:

我在 Windows Server 2012 (IIS) 上使用TYPO3 CMS 7.6PHP 5.5.2,我的服务器管理员安装了ghostscriptgraphicsmagick 1.3.25imagemagick。现在我用graphicsmagick:

C:/GraphicsMagick/gm.exe

它可以工作,在安装工具上测试所有图形操作:将图像格式转换为 jpg 或缩放或组合图像...只有 PDF 缩略图或将 PDF 转换为 JPG 不起作用。

截图:

错误: 阅读pdf

Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['im_path'] and ['GFX']['im_path_lzw'] and ensure Ghostscript is installed on your server.

gmim 的路径是正确的,因为其他格式工作正常。

[GFX][im_path] = C:/GraphicsMagick/
[GFX][im_path_lzw] = C:/GraphicsMagick/

我和我的系统管理员不知道为什么 TYPO3 不能在后端和前端创建 PDF 缩略图。也许ghostscript有一些东西..但他可以通过windows命令行创建pdf?!?所以这是一个 TYPO3 问题?!

感谢您的帮助或提示。 ..

没有 PDF 缩略图,见后端

【问题讨论】:

  • 检查 php-tmp 路径是否对 php-user 是可写的。我不知道这是否会发生在windows上。这是我们 linux 服务器上的常见错误。
  • 你好。我会将信息提供给我的管理员。但他说,他可以通过命令行读取和写入 PDF 文件。所以,Ghostscript 正在工作。我猜 TYPO3 缺少 Ghostscript 的路径..?!
  • 我认为我的 Ghostscript 路径是错误的。在 C.\GraphicsMagick\delegates.mgk 中。像` C:\gs\gswin32c.exe f.e..
  • 此问题仍未解决。路径不是问题。 PDF 和 AI 仍然无法与 TYPO3Windows Server 一起使用。有人还有想法吗?我将用 linux 创建一个新实例并对其进行测试。
  • 你可能会看 [这里] (imagemagick.org/discourse-server/viewtopic.php?t=15056) 问题是基于 32 位和 64 位应用程序/配置之间的差异。

标签: windows pdf imagemagick typo3 thumbnails


【解决方案1】:

在安装 GraphicsMagick 的同时,还可以在窗口服务器上安装 Ghostscript。您可以从这里https://www.ghostscript.com/download/gsdnld.html 下载 Ghostscript。下载前请检查窗口是64位还是32位。然后再次检查环境>图像处理和测试图像。然后在“图像处理”中,所有内容都已成功加载,“阅读 pdf”和“阅读 ai”

【讨论】:

  • 感谢您的回答。我会通知我的系统管理员。
【解决方案2】:

我仍然有同样的问题。我的TYPO3 7.6.24 LTS 不会将 PDF 和 AI 文件转换为 jpg。所有其他文件都在工作。

今天我在我的 Windows 服务器 (IIS) 上更新了 ghostscript 9.22graphicsMagic 1.3.23。现在一切都以 64 位运行。

成功地,我还测试了 GraphicsMagick 以通过命令行cmd.exe 将 pdf 转换为 jpg,f.e.

"c:\Program Files\GraphicsMagick\gm.exe" -convert -geometry 160x130 c:\temp\test.pdf c:\temp\test123.jpg

但它不适用于 TYPO3,请参阅初始帖子中的错误...现在我不知道了 ..?!还有其他人吗?

【讨论】:

    【解决方案3】:

    你是否也在TYPO3管理面板设置>配置预设>图像处理设置>写一个路径或选择一个路径应该像下面的截图

    【讨论】:

      猜你喜欢
      • 2011-07-22
      • 1970-01-01
      • 1970-01-01
      • 2012-02-04
      • 1970-01-01
      • 2014-03-23
      • 2013-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多