Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is wrong with this ? Can someone please explain ? #11

Open
iamvc7 opened this issue Sep 1, 2016 · 1 comment
Open

What is wrong with this ? Can someone please explain ? #11

iamvc7 opened this issue Sep 1, 2016 · 1 comment

Comments

@iamvc7
Copy link

iamvc7 commented Sep 1, 2016

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

@sashasimkin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants