ahupp / python-magic

A python wrapper for libmagic
Other
2.58k stars 279 forks source link

Problems finding MIME type of .pptx #312

Open xXxNIKIxXx opened 4 months ago

xXxNIKIxXx commented 4 months ago

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

ahupp commented 4 months ago

What version of libmagic are you using? I'd try updating that first of all.

On Fri, Feb 23, 2024, 6:32 PM xXxNIKIxXx @.***> wrote:

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 https://github.com/ahupp/python-magic/files/14391489/Normal.presentation.pptx Image Presentation.pptx https://github.com/ahupp/python-magic/files/14391491/Image.Presentation.pptx

— Reply to this email directly, view it on GitHub https://github.com/ahupp/python-magic/issues/312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJ5EW7LGI3XDXNQZ2HUITYVFGM7AVCNFSM6AAAAABDXUM43KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TEMBWGAYTCNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

xXxNIKIxXx commented 4 months ago

As far as i'm concerned i am using the newest version. Or is the newest version not available on pip?

ahupp commented 4 months ago

python-magic is an interface to the system's libmagic library, so you (currently) would need to update that. If you are using python-magic-bin, that packages an extremely old copy of the library and you should install one more recent. I have some PRs to review that will add the binary but it's not available yet.

On Tue, Feb 27, 2024 at 1:26 AM xXxNIKIxXx @.***> wrote:

As far as i'm concerned i am using the newest version. Or is the newest version not available on pip?

— Reply to this email directly, view it on GitHub https://github.com/ahupp/python-magic/issues/312#issuecomment-1966123614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJ5EU4QENGKOE5GFSVWOLYVWRDTAVCNFSM6AAAAABDXUM43KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGEZDGNRRGQ . You are receiving this because you commented.Message ID: @.***>

-- Adam Hupp | http://hupp.org/adam/