我正在尝试进行基本转换:
$ convert image.png out.jpg
但是出现了错误
convert-im6.q16: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3258.
为什么输出图片名为
out.jpg
时会显示“未定义图像”?$ ls
image.png
$ convert -version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
convert xc:red red.png
,看看是否生成了一个像素为红色的 PNG。 - Mark Setchell