ahupp / ahupp/python-magic

Problems finding MIME type of .pptx

Open
#312 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
304
PR merge metrics
No merged PRs in 30d

Description

I have the problem, that normal pptx files are recognized as zip MIME type. I tried exporting the Presentation as an Image Presentation, and it works fine. The MIME type is recognized as application/vnd.openxmlformats-officedocument.presentationml.presentation. Is this intended, or is it an error?
Normal presentation.pptx
Image Presentation.pptx

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported results with the linked normal and image Presentation.pptx files through python-magic, then inspect how the wrapper obtains MIME types from libmagic. Done means determining whether the differing results are expected and, if not, identifying a focused correction with a regression check; the issue names no repository file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.