]> granicus.if.org Git - file/commitdiff
Handle MacOS/X icons (Joerg Jenderek)
authorChristos Zoulas <christos@zoulas.com>
Mon, 9 Nov 2015 17:02:41 +0000 (17:02 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 9 Nov 2015 17:02:41 +0000 (17:02 +0000)
magic/Magdir/images

index cbc01a85523a6934ad443fb5bdbe8327670655e3..29ec684482d256281809c30cb80960adb21e023c 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.108 2015/09/21 21:12:43 christos Exp $
+# $File: images,v 1.109 2015/10/24 15:32:58 christos Exp $
 # images:  file(1) magic for image formats (see also "iff", and "c-lang" for
 # XPM bitmaps)
 #
 #
 0      string  \x42\x50\x47\xFB        BPG (Better Portable Graphics)
 !:mime  image/bpg
+
+# From: Joerg Jenderek
+# URL: https://en.wikipedia.org/wiki/Apple_Icon_Image_format
+0      string          icns            Mac OS X icon
+>4     ubelong         >0              
+!:mime image/x-icns
+!:apple        ????icns
+!:ext icns
+# file size
+>>4    ubelong         x               \b, %d bytes
+# icon type
+>>8    string          x               \b, "%4.4s" type
+
+