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 JPEG XS #56

Closed NebularNerd closed 5 months ago

NebularNerd commented 6 months ago

Closes #52

JPEG XS Image and Video formats added. It's an odd format that seems to have a few variants and some conflicting info. Entries are derived from:

I've added some samples as well as the orignal AI prompt generated .jpg and .ppm file that will work with the reference software encoder (the docs say you can use raw as well but this seems too not be the case). The .jxs files included (which actually should be .jxsc according to the official specs) have slight variances in the header area from playing with different encoder settings, but the 0xff10ff50 remains a constant. JPEG XS Samples.zip

Other variants including the video have been added as extensions only for now. If in the future samples become available there may be an option to define a fingerprint for them.