2016-09-29 101 views
0

我想创建一个具有文本和透明背景的图像文件。用图像magick创建一个文本

我用这个命令:

convert -background black -fill blue \ -font Arial -pointsize 72 label: \ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam invidunt ut labore . invidunt ut labore . output.png 

但它并没有创造我什么,我得到这个错误/消息:

CONVERT.EXE:无法打开图像 '\':无这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image '\': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成/ ReadImage/508。 convert.exe: 无法打开图像'Lorem':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'ipsum': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@错误/构成.c/ReadImage/508。 convert.exe: 无法打开图像'dolor':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'sit': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'amet':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无此解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'consetetur': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'sadipscing':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无此解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'elitr': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'sed':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:不解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'diam': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@错误/构成.c/ReadImage/508。 convert.exe: 无法打开图像'nonumy':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'eirmod': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成/ ReadImage/508。 convert.exe: 无法打开图像'tempor':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'invidunt': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@错误/构成.c/ReadImage/508。 convert.exe: 无法打开图像'ut':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无此解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'labore': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'et':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'dolore': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'magna':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'aliquyam': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe: 无法打开图像'invidunt':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'ut': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@错误/构成.c/ReadImage/508。 convert.exe: 无法打开图像'labore':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:不解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image '.': Permission denied @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。兑换。exe: 无法打开图像'invidunt':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:无解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'ut': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@错误/构成.c/ReadImage/508。 convert.exe: 无法打开图像'labore':没有这样的文件或目录@ 错误/ blob.c/OpenBlob/2695。 convert.exe:不解码代理此 图像格式' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image '.': Permission denied @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format'@ error /构成.c/ReadImage/508。 convert.exe:否 定义的图像`output.png'@ 错误/ convert.c/ConvertImageCommand/3235。

回答

2

试试这个:

convert -background black -fill blue -font Arial -pointsize 72 label:"Lorem ipsum" output.png 

enter image description here

+0

所以基本上我已经把引号? – utdev

+1

是的 - 以便ImageMagick知道您的标签开始和结束的位置。 –