neilharvey / FileSignatures

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

FileFormat does not support multiple extensions #64

Open charliettaylor opened 9 months ago

charliettaylor commented 9 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 9 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.