Tesseract and tiff format - spp not in set {1,3}

前端 未结 4 1114
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 21:32

While trying to run this command:

tesseract bond111.tif bond111 batch.nochop makebox

I get the next error

Error in pixReadFromT         


        
4条回答
  •  伪装坚强ぢ
    2021-02-06 22:18

    Adjusting the conversion to the following line did help me.

    convert -density 300 input.pdf -depth 8 -background white -alpha Off output.tiff
    

    Note that the other answers did not work for me since they use the deprecated +matte flag instead of -alpha Off.

提交回复
热议问题