cdgriffith / puremagic

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

Updated headers for every possible ZSoft .pcx header #50

Closed NebularNerd closed 6 months ago

NebularNerd commented 6 months ago

ZSoft .pcx files have lots of possible header combinations depending on the version and other attributes. because it's quite a small header I've added all 40 possible versions based on https://en.wikipedia.org/wiki/PCX. This will provide (hopefully) 100% confidence against any .pcx file you'll come across.

I've extended the naming to cover the various types, equally happy to remove/amend the stuff in ( ) if you feel it's too much.