使用重影脚本将JPG转换为TIFF


Convert JPG to TIFF using ghost script

我正在尝试使用ghost脚本将图像从.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

老东西,但无论如何。

我正在为Tesseract寻找一种将JPG转换为TIFF的方法,但我偶然发现了这一点。

我忍不住了,但你为什么要问"你为什么不直接使用imagemagik"?

AFAIK,imagemagick在下面的某个地方使用gs。。。但无论如何,问题是关于代笔,而不是ImageMagick。