doc2text icon indicating copy to clipboard operation
doc2text copied to clipboard

What is wrong with this ? Can someone please explain ?

Open iamvc7 opened this issue 8 years ago • 1 comments

doc.read('/home/ubuntu/doc2text/test.jpg') File "/usr/local/lib/python2.7/dist-packages/doc2text/init.py", line 78, in read raise FileNotAcceptedException

iamvc7 avatar Sep 01 '16 07:09 iamvc7

Looking at source, the mime type of your image is not one of:

acceptable_mime = ["image/bmp", "image/png", "image/tiff", "image/jpeg", "image/jpg", "video/JPEG", "video/jpeg2000"]

Also, it should print you actual mime-type right before raising the exception.

sashasimkin avatar Sep 01 '16 19:09 sashasimkin