使用html2ps和imagemagick时出错
我正在尝试使用html2ps和imagemagick将html文件转换为图像。这是正在执行的命令:使用html2ps和imagemagick时出错,imagemagick,html2ps,Imagemagick,Html2ps,我正在尝试使用html2ps和imagemagick将html文件转换为图像。这是正在执行的命令: convert ./test.html ./test.png 这就是我收到的错误: Use of assignment to $[ is deprecated at /usr/bin/html2ps line 3409. *** Error opening /tmp/magick-mEFhFOmU Error: /nocurrentpoint in --currentpoint-- Operan
convert ./test.html ./test.png
这就是我收到的错误:
Use of assignment to $[ is deprecated at /usr/bin/html2ps line 3409.
*** Error opening /tmp/magick-mEFhFOmU
Error: /nocurrentpoint in --currentpoint--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- --dict:407/2000(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 27444
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
Error: /nocurrentpoint in --currentpoint--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- -- dict:407/2000(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 27444
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
convert: unable to open image `./test.html': @ error/blob.c/OpenBlob/2587.
convert: Postscript delegate failed `/tmp/magick-Dm8Uf9H1': @ error/ps.c/ReadPSImage/806.
convert: missing an image filename `./test.png' @ error/convert.c/ConvertImageCommand/3011.
我试过寻找,但没有运气。我部分理解这里发生的事情,但不知道如何修复它
编辑:我在Ubuntu 32位上运行这个哪个Ubuntu,亲爱的Ubuntu’can,从最新版本向后列出:精确穿山甲(12.04)、Oneiric Ocelot(11.10)、Natty Narhall(10.04)、特立独行的猫鼬(10.10)、清醒猞猁(10.04)、Karmic Koala(9.10)、活泼、无畏、坚韧、勇敢、精力充沛、前卫、拖地、微风、白发和疣。另外,ImageMagick的哪个版本(
convert-version
)?哪个版本的html2ps(html2ps-v`)?我明白了,Ghostscript是9.05…哪个Ubuntu,亲爱的?”Ubuntu’can,从最新版本向后列出:精确穿山甲(12.04)、Oneiric Ocelot(11.10)、Natty Narhall(10.04)、特立独行的猫鼬(10.10)、清醒猞猁(10.04)、Karmic Koala(9.10)、活泼、无畏、坚韧、勇敢、精力充沛、前卫、拖地、微风、白发和疣。另外,ImageMagick的哪个版本(convert-version
)?哪个版本的html2ps(html2ps-v`)?我明白了,鬼脚本是9.05。。。