cdgriffith / puremagic

Pure python implementation of identifying files based off their magic numbers
MIT License
158 stars 34 forks source link

Update magic_data.json with better .pcx matching #49

Closed NebularNerd closed 6 months ago

NebularNerd commented 6 months ago

Removes bit plane depth byte from .pcx format, added headers that should match any possible variant (there are a lot) based on file headers as detailed at https://en.wikipedia.org/wiki/PCX. The non compressed variants are hens-teeth rare but included for completeness.

We could include plane depth matching as well, however that would increase the .json size another 30 lines for the additional three sets required (happy to add before completing the pull if you feel this would be worth it for completeness)

NebularNerd commented 6 months ago

Just noticed there are .pcx entries scattered through the file, will tidy and re-open