无法使用(ImageMagick)在CentOS中运行转换命令

时间:2022-02-10 23:54:40

I am new to ImageMagick and I am simply trying to run convert command at Command line which is as follows:

我是ImageMagick的新手,我只是在命令行上运行convert命令,如下所示:

convert '/home/674390/Desktop/rose.jpg' '/home/674390/Desktop/rose.png'

Getting an error message:

得到一个错误信息:

convert: unable to open image /home/674390/Desktop/rose.jpg': No such file or directory @ error/blob.c/OpenBlob/2643. convert: no decode delegate for this image format/home/674390/Desktop/rose.jpg' @ error/constitute.c/ReadImage/555. convert: no images defined `/home/674390/Desktop/rose.png' @ error/convert.c/ConvertImageCommand/3144.

转换:无法打开图像/home/674390/ desktop/rose. jpg':没有这样的文件或目录@ error/blob.c/OpenBlob/2643。转换:此图像格式/home/674390/Desktop/rose.jpg的无解码委托。转换:没有定义的图像' /home/674390/Desktop/rose。png”@错误/ convert.c / ConvertImageCommand / 3144。

Please help.

请帮助。

My Operating System is CentOS.

我的操作系统是CentOS。

1 个解决方案

#1


0  

There's three errors involved with your convert command.

转换命令中有三个错误。

convert: unable to open image /home/674390/Desktop/rose.jpg': No such file or directory @ error/blob.c/OpenBlob/2643.

转换:无法打开图像/home/674390/ desktop/rose. jpg':没有这样的文件或目录@ error/blob.c/OpenBlob/2643。

This means exactly what it says. There is no file at that path, or you do not have read permissions to access it.

这就是它所说的。在该路径上没有文件,或者您没有读权限来访问它。

convert: no decode delegate for this image format/home/674390/Desktop/rose.jpg' @ error/constitute.c/ReadImage/555.

转换:此图像格式/home/674390/Desktop/rose.jpg' @ error/ constitution .c/ ready /555没有解码委托。

This message is informing you that you'll need to install libjpeg to work with this file format. See ImageMagick Delegates for resources. You can also verify what your system can work with by running the following commands.

此消息通知您需要安装libjpeg才能使用此文件格式。参见ImageMagick委托获取参考资料。您还可以通过运行以下命令来验证您的系统可以运行什么。

convert -list delegate | less
convert -list format | less

Finally

最后

convert: no images defined `/home/674390/Desktop/rose.png' @ error/convert.c/ConvertImageCommand/3144.

转换:没有定义的图像' /home/674390/Desktop/rose。png”@错误/ convert.c / ConvertImageCommand / 3144。

As the first image could not be opened, convert now believes the distention file is the source file, and attempts to open it for reading. And so, a message identical to the first one is displayed.

由于第一个图像无法打开,convert现在认为扩展文件是源文件,并尝试打开它进行读取。因此,将显示与第一个消息相同的消息。

#1


0  

There's three errors involved with your convert command.

转换命令中有三个错误。

convert: unable to open image /home/674390/Desktop/rose.jpg': No such file or directory @ error/blob.c/OpenBlob/2643.

转换:无法打开图像/home/674390/ desktop/rose. jpg':没有这样的文件或目录@ error/blob.c/OpenBlob/2643。

This means exactly what it says. There is no file at that path, or you do not have read permissions to access it.

这就是它所说的。在该路径上没有文件,或者您没有读权限来访问它。

convert: no decode delegate for this image format/home/674390/Desktop/rose.jpg' @ error/constitute.c/ReadImage/555.

转换:此图像格式/home/674390/Desktop/rose.jpg' @ error/ constitution .c/ ready /555没有解码委托。

This message is informing you that you'll need to install libjpeg to work with this file format. See ImageMagick Delegates for resources. You can also verify what your system can work with by running the following commands.

此消息通知您需要安装libjpeg才能使用此文件格式。参见ImageMagick委托获取参考资料。您还可以通过运行以下命令来验证您的系统可以运行什么。

convert -list delegate | less
convert -list format | less

Finally

最后

convert: no images defined `/home/674390/Desktop/rose.png' @ error/convert.c/ConvertImageCommand/3144.

转换:没有定义的图像' /home/674390/Desktop/rose。png”@错误/ convert.c / ConvertImageCommand / 3144。

As the first image could not be opened, convert now believes the distention file is the source file, and attempts to open it for reading. And so, a message identical to the first one is displayed.

由于第一个图像无法打开,convert现在认为扩展文件是源文件,并尝试打开它进行读取。因此,将显示与第一个消息相同的消息。