Open iamvc7 opened 8 years ago
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.
doc.read('/home/ubuntu/doc2text/test.jpg') File "/usr/local/lib/python2.7/dist-packages/doc2text/init.py", line 78, in read raise FileNotAcceptedException