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

问题描述 投票:0回答:1

我在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代表。我不确定它会不会起作用。

ubuntu imagemagick-convert
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.