2

i am trying to convert images from .jpg to .tiff using ghost script.And i have executed following command to do that.

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=tiffg3 -sOutputFile=sip.tiff -f sipchat.jpg 

But i am getting this errors.

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

What is the problem with my command? Any suggestion and guidance will be appreciated.I have to convert my images using ghost script because if i am using the images which is converted by other tools is not being accepted.
Thanks

4

2 に答える 2

3

ImageMagickを使ってみませんか...?

convert rose.jpg rose.tiff
于 2012-07-24T07:28:15.887 に答える
1

古いものですが、とにかく。

Tesseract 用に JPG を TIFF に変換する方法を探していて、これに遭遇しました。

どうにもなりませんが、なぜ「imagemagick を使用しないのですか」と尋ねるのですか?

私の知る限り、imagemagickはgsをどこかで使用しています...しかし、とにかく問題はImageMagickではなくghostscriptに関するものでした。

于 2015-10-07T00:07:18.027 に答える