From 816447a38c93d37586ab71cd7d8725ce63110b15 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 19 Nov 2013 23:56:04 +0000 Subject: [PATCH] PR/296: Add more BMP images --- magic/Magdir/images | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/magic/Magdir/images b/magic/Magdir/images index 54fe6228..d07c0475 100644 --- a/magic/Magdir/images +++ b/magic/Magdir/images @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: images,v 1.84 2013/09/23 14:33:58 christos Exp $ +# $File: images,v 1.85 2013/09/27 23:30:39 christos Exp $ # images: file(1) magic for image formats (see also "iff", and "c-lang" for # XPM bitmaps) # @@ -256,6 +256,8 @@ # at offset 8 starts imagedata followed by "RGB " marker # PC bitmaps (OS/2, Windows BMP files) (Greg Roelofs, newt@uchicago.edu) +# http://en.wikipedia.org/wiki/BMP_file_format#DIB_header_.\ +# 28bitmap_information_header.29 0 string BM >14 leshort 12 PC bitmap, OS/2 1.x format !:mime image/x-ms-bmp @@ -270,6 +272,16 @@ >>18 lelong x \b, %d x >>22 lelong x %d x >>28 leshort x %d +>14 leshort 124 PC bitmap, Windows 98/2000 and newer format +!:mime image/x-ms-bmp +>>18 lelong x \b, %d x +>>22 lelong x %d x +>>28 leshort x %d +>14 leshort 108 PC bitmap, Windows 95/NT4 and newer format +!:mime image/x-ms-bmp +>>18 lelong x \b, %d x +>>22 lelong x %d x +>>28 leshort x %d >14 leshort 128 PC bitmap, Windows NT/2000 format !:mime image/x-ms-bmp >>18 lelong x \b, %d x -- 2.40.0