使用图像魔术创建文本
Create a text with image 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: unable to open image '\': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'Lorem': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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
' @ error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'dolor': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'amet': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'sadipscing': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'sed': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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
' @ error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'nonumy': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'tempor': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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
' @ 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 ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'et': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/constitute.c/ReadImage/508. convert.exe:
unable to open image 'magna': No such file or directory @
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' @ 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/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 ' @ 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
' @ 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/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/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 ' @ 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
' @ 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/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/constitute.c/ReadImage/508. convert.exe: no
images defined `output.png' @
error/convert.c/ConvertImageCommand/3235.
试试这个:
convert -background black -fill blue -font Arial -pointsize 72 label:"Lorem ipsum" output.png
C:\OPV2\binaries\FontToImage\convert.exe 标签:"abcd" C:\OPv2\test.png
convert.exe: 无法打开图像 'label:abcd': 没有那个文件或目录@ error/blob.c/OpenBlob/3491。
convert.exe: 此图像格式没有解码委托 ' @ error/constitute.c/ReadImage/556.
convert.exe: no images defined
C:\OPv2\test.png' @ error/convert.c/ConvertImageCommand/3300.
很奇怪,不是吗?
在我的本地计算机上,它是工作文件
C:\OPV2\binaries\FontToImage\convert.exe --version
版本:ImageMagick 7.0.8-23 Q16 x64 2019-01-02 http://www.imagemagick.org
版权所有: 版权所有 (C) 1999-2018 ImageMagick Studio LLC
许可证:http://www.imagemagick.org/script/license.php
视觉 C++:180040629
特点:密码 DPC 模块 OpenMP
代表(内置):bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
标签未重新识别...
我正在尝试创建一个包含文本和透明背景的图像文件。
我使用了这个命令:
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: unable to open image '\': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format
' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'Lorem': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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
' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'dolor': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'amet': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'sadipscing': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'sed': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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
' @ error/constitute.c/ReadImage/508. convert.exe: unable to open image 'nonumy': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'tempor': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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
' @ 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' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'et': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/constitute.c/ReadImage/508. convert.exe: unable to open image 'magna': No such file or directory @ error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this image format' @ 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/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' @ 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
' @ 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/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/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' @ 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
' @ 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/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/constitute.c/ReadImage/508. convert.exe: no images defined `output.png' @ error/convert.c/ConvertImageCommand/3235.
试试这个:
convert -background black -fill blue -font Arial -pointsize 72 label:"Lorem ipsum" output.png
C:\OPV2\binaries\FontToImage\convert.exe 标签:"abcd" C:\OPv2\test.png
convert.exe: 无法打开图像 'label:abcd': 没有那个文件或目录@ error/blob.c/OpenBlob/3491。
convert.exe: 此图像格式没有解码委托 ' @ error/constitute.c/ReadImage/556.
convert.exe: no images defined
C:\OPv2\test.png' @ error/convert.c/ConvertImageCommand/3300.
很奇怪,不是吗? 在我的本地计算机上,它是工作文件
C:\OPV2\binaries\FontToImage\convert.exe --version 版本:ImageMagick 7.0.8-23 Q16 x64 2019-01-02 http://www.imagemagick.org 版权所有: 版权所有 (C) 1999-2018 ImageMagick Studio LLC 许可证:http://www.imagemagick.org/script/license.php 视觉 C++:180040629 特点:密码 DPC 模块 OpenMP 代表(内置):bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
标签未重新识别...