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

filetype pptx not being detected #542

Open
huineng opened this issue Dec 7, 2024 · 1 comment
Open

filetype pptx not being detected #542

huineng opened this issue Dec 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@huineng
Copy link

huineng commented Dec 7, 2024

when doing a simple test on my devcontainer (python 3.11)

with open('test.pptx', 'rb') as f:
    kind = filetype.guess(f.read())
    print(kind.mime, kind.extension)

it returns application/zip zip

converter.convert('test.pptx')

Input document test.pptx does not match any allowed format.
File format not allowed: test.pptx

it works from a remote location because there the content type is specified, but not from a local import

ps pptx is essentially a zip file

latest versions i'm using docling==2.8.3

Thanks

ps2 your documentation on the installation for Tesseract needs some update, that doesn't work, i found the way to do it (much later) in the custom conversion example

@huineng huineng added the bug Something isn't working label Dec 7, 2024
@carmelomigliore
Copy link

carmelomigliore commented Dec 9, 2024

I have the same problem, probably it's related to this: h2non/filetype.py#171
the 'file' utility correctly detect the application/vnd.openxmlformats-officedocument.presentationml.presentation mimetype on the same document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants