From 828d23e8033407a8c0d98d649a758adefd6d6720 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 23 Feb 2024 15:40:39 +0000 Subject: [PATCH] Updated headers for every possible ZSoft .pcx header (#50) * 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 --- puremagic/magic_data.json | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/puremagic/magic_data.json b/puremagic/magic_data.json index d9078e5..8b73a56 100644 --- a/puremagic/magic_data.json +++ b/puremagic/magic_data.json @@ -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"], @@ -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"],