See my link above. I am no expert on BMP, but BMP3: format allows bit depths of 0, 1, 4, 8 ,16, 24 and 32. So for 16 colors, you could try
For example, I tried using the IM internal logo: image and got a grayscale palette image with 16 colors in the colormap.
Code: Select all
identify -verbose logo3_bmp3.bmp
Image: logo3_bmp3.bmp
Format: BMP3 (Microsoft Windows bitmap image (V3))
Class: PseudoClass
Geometry: 640x480+0+0
Units: PixelsPerCentimeter
Colorspace: sRGB
Type: Grayscale
Base type: Undefined
Endianess: Undefined
Depth: 4-bit
Channel depth:
red: 4-bit
green: 4-bit
blue: 4-bit
Channel statistics:
Pixels: 307200
Red:
min: 0 (0)
max: 15 (1)
mean: 13.3571 (0.890472)
standard deviation: 4.04173 (0.269449)
kurtosis: 3.51762
skewness: -2.26713
entropy: 0.298121
Green:
min: 0 (0)
max: 15 (1)
mean: 13.3571 (0.890472)
standard deviation: 4.04173 (0.269449)
kurtosis: 3.51762
skewness: -2.26713
entropy: 0.298121
Blue:
min: 0 (0)
max: 15 (1)
mean: 13.3571 (0.890472)
standard deviation: 4.04173 (0.269449)
kurtosis: 3.51762
skewness: -2.26713
entropy: 0.298121
Image statistics:
Overall:
min: 0 (0)
max: 15 (1)
mean: 13.3571 (0.890472)
standard deviation: 4.04173 (0.269449)
kurtosis: 3.51765
skewness: -2.26714
entropy: 0.298121
Colors: 16
Histogram:
7150: ( 0, 0, 0) #000000 black
1417: ( 17, 17, 17) #111111 srgb(17,17,17)
4163: ( 34, 34, 34) #222222 srgb(34,34,34)
6901: ( 51, 51, 51) #333333 grey20
14740: ( 68, 68, 68) #444444 srgb(68,68,68)
767: ( 85, 85, 85) #555555 srgb(85,85,85)
716: (102,102,102) #666666 grey40
1022: (119,119,119) #777777 srgb(119,119,119)
2000: (136,136,136) #888888 srgb(136,136,136)
1482: (153,153,153) #999999 grey60
3110: (170,170,170) #AAAAAA srgb(170,170,170)
1539: (187,187,187) #BBBBBB srgb(187,187,187)
1471: (204,204,204) #CCCCCC grey80
2922: (221,221,221) #DDDDDD srgb(221,221,221)
1403: (238,238,238) #EEEEEE srgb(238,238,238)
256397: (255,255,255) #FFFFFF white
Colormap entries: 16
Colormap:
0: ( 0, 0, 0) #000000 black
1: ( 17, 17, 17) #111111 srgb(17,17,17)
2: ( 34, 34, 34) #222222 srgb(34,34,34)
3: ( 51, 51, 51) #333333 grey20
4: ( 68, 68, 68) #444444 srgb(68,68,68)
5: ( 85, 85, 85) #555555 srgb(85,85,85)
6: (102,102,102) #666666 grey40
7: (119,119,119) #777777 srgb(119,119,119)
8: (136,136,136) #888888 srgb(136,136,136)
9: (153,153,153) #999999 grey60
10: (170,170,170) #AAAAAA srgb(170,170,170)
11: (187,187,187) #BBBBBB srgb(187,187,187)
12: (204,204,204) #CCCCCC grey80
13: (221,221,221) #DDDDDD srgb(221,221,221)
14: (238,238,238) #EEEEEE srgb(238,238,238)
15: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 640x480+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: Undefined
Properties:
date:create: 2018-08-10T18:07:10-07:00
date:modify: 2018-08-10T18:07:10-07:00
signature: 786d78cb30658035043ee355755e4e69cd4793953dbffaa5dcb872809cae866e
Artifacts:
filename: logo3_bmp3.bmp
verbose: true
Tainted: False
Filesize: 153718B
Number pixels: 307200
Pixels per second: 30.72MB
User time: 0.020u
Elapsed time: 0:01.009
Version: ImageMagick 6.9.10-9 Q16 x86_64 2018-08-06 https://www.imagemagick.org