Skip to content

Commit

Permalink
Version 1.21 (#55)
Browse files Browse the repository at this point in the history
- Adding #50 details for  ZSoft .pcx files (thanks to Andy - NebularNerd)
- Adding #51 details for JXL files (thanks to Andy - NebularNerd)
- Adding #54 missing py.typed file (thanks to Raphaël Vinot)
- Fixing #53 magic data for GIF images (thanks to Andy - NebularNerd)

---------

Co-authored-by: Raphaël Vinot <Rafiot@users.noreply.github.com>
Co-authored-by: Andy <NebularNerd@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 23, 2024
1 parent 5cdc4a0 commit 9f51bff
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ A big thank you to everyone that has helped!
- phithon
- Gerhard Schmidt
- R. Singh (Gr3atWh173)
- Andy (NebularNerd)
- Raphaël Vinot (Rafiot)
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

Version 1.21
------------

- Adding #50 details for ZSoft .pcx files (thanks to Andy - NebularNerd)
- Adding #51 details for JXL files (thanks to Andy - NebularNerd)
- Adding #54 missing py.typed file (thanks to Raphaël Vinot)
- Fixing #53 magic data for GIF images (thanks to Andy - NebularNerd)

Version 1.20
------------

Expand Down
44 changes: 39 additions & 5 deletions puremagic/magic_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
["3c2f7376673e", -6, ".svg", "image/svg+xml", "Scalable Vector Graphics Image"]
],
"headers": [
["ff0a", 0, ".jxl", "image/jxl", "JPEG XL image (Raw stream)"],
["0000000c4a584c200d0a870a", 0, ".jxl", "image/jxl", "JPEG XL image (ISOBMFF container)"],
["3c3f786d6c", 0, ".xml", "application/xml", "XML Document"],
["454c46", 1, ".AppImage", "application/x-iso9660-appimage", "AppImage application bundle"],
["4341434845204d414e4946455354", 0, ".manifest", "text/cache-manifest", "Web application cache manifest"],
Expand Down Expand Up @@ -249,7 +251,7 @@
["464f524d00", 0, ".aif", "audio/x-aiff", "Audio Interchange File"],
["fff94c80", 0, ".aac", "audio/aac", "AAC audio file"],
["474946383761", 0, ".gif", "image/gif", "Graphics interchange format file (GIF87a)"],
["474946383961", 0, ".gif", "image/gif", "Graphics interchange format file (GIF87a)"],
["474946383961", 0, ".gif", "image/gif", "Graphics interchange format file (GIF89a)"],
["00000100", 0, ".ico", "image/x-icon", "Icon Image file"],
["0100000001", 0, ".pic", "image/x-pict", "PICT Image file"],
["424d", 0, ".bmp", "image/x-ms-bmp", "Bitmap image"],
Expand Down Expand Up @@ -483,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 All @@ -502,7 +538,6 @@
["010f0000", 0, ".mdf", "", "SQL Data Base"],
["58435000", 0, ".cap", "", "Packet sniffer files"],
["02647373", 0, ".dss", "", "Digital Speech Standard file"],
["47494638", 0, ".gif", "image/gif", "GIF file"],
["b168de3a", 0, ".dcx", "image/x-dcx", "PCX bitmap"],
["52494646", 0, ".cdr", "", "CorelDraw document"],
["736b6970", 4, ".mov", "video/quicktime", "QuickTime movie"],
Expand Down Expand Up @@ -577,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
2 changes: 1 addition & 1 deletion puremagic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Union, Tuple, List, Dict, Optional

__author__ = "Chris Griffith"
__version__ = "1.20"
__version__ = "1.21"
__all__ = [
"magic_file",
"magic_string",
Expand Down
Empty file added puremagic/py.typed
Empty file.

0 comments on commit 9f51bff

Please sign in to comment.