neilharvey / FileSignatures

A small library for detecting the type of a file based on header signature (also known as magic number).
MIT License
259 stars 42 forks source link

FileFormat does not support multiple extensions #64

Open charliettaylor opened 11 months ago

charliettaylor commented 11 months ago

Some file formats have multiple extensions and it would be nice to be able to have aliases for them. For example, image/jpeg can be .jpg or .jpeg and image/tiff can be .tif or .tiff.

Suggested change:

neilharvey commented 11 months ago

Sure, we had a similar request recently which I've started implementing - I'll try to find some time to finish it off.