ubuntu - 无法使用 imagemagick 和 ghostscript 将 PDF 转换为 jpg

标签 ubuntu imagemagick-convert

我在 Ubuntu 18 上安装了带有 ghostscript 9.26 的 imagemagick 7。我正在尝试运行一个简单的转换以将 pdf 更改为 jpg,但出现此错误

convert -density 100 -colorspace rgb /home/cougs/test.pdf -scale 200x200 /home/cougs/test
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.
convert: no images defined `/home/cougs/test' @ error/convert.c/ConvertImageCommand/3300.

我安装了 jpg 扩展。如果您查看配置,您会得到这个。
identify -version
Version: ImageMagick 7.0.8-27 Q16 x86_64 2019-02-13 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): jpeg x  

它显示了 jpg 代表。我不确定它是否行不通。

最佳答案

我完全删除了 GS 和 Imagemagick。用 GS 9.23 版本重新安装它。现在可以了。

关于ubuntu - 无法使用 imagemagick 和 ghostscript 将 PDF 转换为 jpg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54680292/

相关文章:

Imagemagick 裁剪成图 block 并强制所有图 block 具有相同的尺寸?

php - 如何获取与 WordPress 博客特色图像关联的图像文本?

c++ - 在 vc++ 中哪里可以找到 ImageMagicK 操作描述的更多详细信息?

gcc - 将 newlib 移植到交叉编译器中

laravel - 在 Ubuntu 上使用 Sail 和 PhpStorm 在 Laravel 8 上运行 Xdebug

java - 在 AEM 中使用 MagickQuick 进行图像压缩

imagemagick - 使用Sphinx Extension将svg转换为pdf

apache - 升级到 Ubuntu 13.10 后,laravel 项目在 Apache 上出现 403 错误

ubuntu - modprobe uio_pci_genericco 在 Ubuntu 18.04.6 上失败

node.js - 为不同版本重新启动/重新加载应用程序的正确方法