我正在尝试使用幽灵脚本将图像从.jpg转换为.tiff,并且我已经执行了以下命令来做到这一点。
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=tiffg3 -sOutputFile=sip.tiff -f sipchat.jpg
但是我得到这个错误。
Error: /undefined in �����Exif
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1894 1 3 %oparray_pop 1893 1 3 %oparray_pop 1877 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Current file position is 11
GPL Ghostscript 9.04: Unrecoverable error, exit code 1
我的命令有什么问题?任何建议和指导将不胜感激。我必须使用幽灵脚本转换图像,因为如果我使用由其他工具转换的图像,则不接受。
最佳答案
您为什么不只使用ImageMagick ...?
convert rose.jpg rose.tiff