问题描述
我需要使用 ghostscript 以编程方式将 EPS 文件转换为 PNG。 ghostscript 命令是:
gs -dBATCH -dnopAUSE -dSAFER -dEPSCrop -r300 -sDEVICE=pngalpha -sOutputFile=tmp.png input.eps
Error: /limitcheck in --shfill--
Operand stack:
--dict:6/6(L)-- --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- shfill --nostringval-- 2 %stopped_push --nostringval-- shfill shfill false 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1972 1 3 %oparray_pop shfill 1961 1 3 %oparray_pop 1817 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- shfill --nostringval-- 2 %stopped_push --nostringval-- shfill 1940 1 10 %oparray_pop shfill false 1 %stopped_push
Dictionary stack:
--dict:730/1123(ro)(G)-- --dict:1/20(G)-- --dict:92/200(L)-- --dict:57/75(L)-- --dict:211/313(L)-- --dict:72/140(L)-- --dict:0/10(G)-- --dict:0/10(L)-- --dict:0/50(ro)(G)-- --dict:57/71(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 4781076
GPL Ghostscript 9.53.3: Unrecoverable error,exit code 1
从我收集到的信息来看,矢量文件似乎太复杂了,以至于达到了 ghostscript 的限制。是否有一些我可以更改的参数可以解除此类限制?或者唯一的方法是将文件编辑得不那么复杂,或者从 Illustrator 手动导出?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)