Skip to content

Commit

Permalink
Updated headers for every possible ZSoft .pcx header (#50)
Browse files Browse the repository at this point in the history
* Update magic_data.json

Removes bit plane depth from .pcx format, replaces it with headers that should match any possible variant (there are a lot)

* Update magic_data.json

Every possible .pcx header combination now added, removed other .pcx entries scattered elsewhere so they are all together
  • Loading branch information
NebularNerd authored Feb 23, 2024
1 parent c1b0664 commit 828d23e
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions puremagic/magic_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,46 @@
["fdffffff28", 512, ".xls", "application/excel", "Excel spreadsheet subheader"],
["504b0304", 0, ".xpi", "", "Mozilla Browser Archive"],
["504b0304", 0, ".wmz", "", "Windows Media compressed skin file"],
["0a020101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file"],
["0a000101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, 1bpp)"],
["0a020101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, 1bpp)"],
["0a030101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, 1bpp)"],
["0a040101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, 1bpp)"],
["0a050101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, 1bpp)"],
["0a000001", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, no encoding, 1bpp)"],
["0a020001", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, no encoding, 1bpp)"],
["0a030001", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, no encoding, 1bpp)"],
["0a040001", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, no encoding, 1bpp)"],
["0a050001", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, no encoding, 1bpp)"],
["0a000102", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, 2bpp)"],
["0a020102", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, 2bpp)"],
["0a030102", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, 2bpp)"],
["0a040102", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, 2bpp)"],
["0a050102", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, 2bpp)"],
["0a000002", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, no encoding, 2bpp)"],
["0a020002", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, no encoding, 2bpp)"],
["0a030002", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, no encoding, 2bpp)"],
["0a040002", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, no encoding, 2bpp)"],
["0a050002", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, no encoding, 2bpp)"],
["0a030104", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, 4bpp)"],
["0a040104", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, 4bpp)"],
["0a050104", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, 4bpp)"],
["0a000004", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, no encoding, 4bpp)"],
["0a020004", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, no encoding, 4bpp)"],
["0a030004", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, no encoding, 4bpp)"],
["0a040004", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, no encoding, 4bpp)"],
["0a050004", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, no encoding, 4bpp)"],
["0a030108", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, 8bpp)"],
["0a040108", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, 8bpp)"],
["0a050108", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, 8bpp)"],
["0a000008", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, fixed EGA palette, no encoding, 8bpp)"],
["0a020008", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.5, modified EGA palette, no encoding, 8bpp)"],
["0a030008", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (2.8, no encoding, 8bpp)"],
["0a040008", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (Paintbrush for Windows, no encoding, 8bpp)"],
["0a050008", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file (3.0, no encoding, 8bpp)"],
["eb3c902a", 0, ".img", "", "GEM Raster file"],
["4d4d002a", 0, ".tif", "image/tiff", "TIFF file"],
["72656766", 0, ".dat", "", "WinNT registry file"],
["4d4c5357", 0, ".mls", "", "Skype localization data file"],
["0a030101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file"],
["504d4343", 0, ".grp", "", "Windows Program Manager group file"],
["47504154", 0, ".pat", "", "GIMP pattern file"],
["706e6f74", 4, ".mov", "video/quicktime", "QuickTime movie"],
Expand Down Expand Up @@ -578,7 +612,6 @@
["504b0304", 0, ".ott", "application/vnd.oasis.opendocument.text-template", "OpenDocument template"],
["c5d0d3c6", 0, ".eps", "application/postscript", "Adobe encapsulated PostScript"],
["c8007900", 0, ".lbk", "", "Jeppesen FliteLog file"],
["0a050101", 0, ".pcx", "image/x-pcx", "ZSOFT Paintbrush file"],
["4c4e0200", 0, ".gid", "", "Windows help file"],
["4c4e0200", 0, ".hlp", "application/x-helpfile", "Windows help file"],
["55434558", 0, ".uce", "", "Unicode extensions"],
Expand Down

0 comments on commit 828d23e

Please sign in to comment.