]> 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 156f5326e9ad3512095d3f8c3dc827279dc46c98..f3686ffea1a2c373712ca0ddb3210c1746629336 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.109 2015/10/24 15:32:58 christos Exp $
+# $File: images,v 1.110 2015/11/09 17:02:41 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
+
+