#------------------------------------------------------------------------------
-# $File: images,v 1.86 2013/11/19 23:56:04 christos Exp $
+# $File: images,v 1.87 2013/12/11 14:14:20 christos Exp $
# images: file(1) magic for image formats (see also "iff", and "c-lang" for
# XPM bitmaps)
#
# `xv' recognizes only a subset of the following (RGB with pixelsize = 24)
# `tgatoppm' recognizes a superset (Index may be anything)
1 belong&0xfff7ffff 0x01010000 Targa image data - Map
+!:strength + 2
>2 byte&8 8 - RLE
>12 leshort >0 %hd x
>14 leshort >0 %hd
1 belong&0xfff7ffff 0x00020000 Targa image data - RGB
+!:strength + 2
>2 byte&8 8 - RLE
>12 leshort >0 %hd x
>14 leshort >0 %hd
1 belong&0xfff7ffff 0x00030000 Targa image data - Mono
+!:strength + 2
>2 byte&8 8 - RLE
>12 leshort >0 %hd x
>14 leshort >0 %hd
#------------------------------------------------------------------------------
-# $File: msdos,v 1.92 2014/03/14 18:47:29 christos Exp $
+# $File: msdos,v 1.93 2014/03/28 19:06:09 christos Exp $
# msdos: file(1) magic for MS-DOS files
#
>4 ubyte !0 \b, %d colors
0 belong 0x00000100
-!:strength - 2
>9 byte 0
>>0 byte x MS Windows icon resource
!:mime image/x-icon
0 belong 0x00000200
>9 byte 0
-!:strength - 2
>>0 byte x MS Windows cursor resource
!:mime image/x-cur
>>4 use cur-dir