Page 1 of 1

converting bitmap to the same parameters as other bitmap (apart from the resolution)

Posted: 2019-03-29T13:23:26-07:00
by Irbis88
I have two black and white bmp files with the following parameters:

file command:

Code: Select all

imgA.bmp: PC bitmap, Windows 3.x format, 560 x 240 x 1
imgB.bmp: PC bitmap, Windows 98/2000 and newer format, 450 x 100 x 32
identify -verbose command imgA.bmp:

Code: Select all

Image: imgA.bmp
  Format: BMP3 (Microsoft Windows bitmap image (V3))
  Class: PseudoClass
  Geometry: 560x240+0+0
  Resolution: 28.35x28.35
  Print size: 19.7531x8.46561
  Units: PixelsPerCentimeter
  Type: Bilevel
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 1-bit
  Channel depth:
    gray: 1-bit
  Channel statistics:
    Pixels: 134400
    Gray:
      min: 0 (0)
      max: 1 (1)
      mean: 0.813356 (0.813356)
      standard deviation: 0.389626 (0.389626)
      kurtosis: 0.587258
      skewness: -1.6085
      entropy: 0.694399
  Colors: 2
  Histogram:
     25085: (  0,  0,  0) #000000 gray(0)
    109315: (255,255,255) #FFFFFF gray(255)
  Colormap entries: 2
  Colormap:
         0: (  0,  0,  0) #000000 gray(0)
         1: (255,255,255) #FFFFFF gray(255)
  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: gray(255)
  Border color: gray(223)
  Matte color: gray(189)
  Transparent color: gray(0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 560x240+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: Undefined
  Properties:
    date:create: 2019-03-29T19:26:45+01:00
    date:modify: 2019-03-29T19:26:45+01:00
    signature: d8c58d4a762d05d160bdfbf0a6a8a70e0a124234d17bcca07e09dd5e0cb8f4bd
  Artifacts:
    filename: test.bmp
    verbose: true
  Tainted: False
  Filesize: 17.3KB
  Number pixels: 134K
  Pixels per second: 13.44MB
  User time: 0.000u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
identify -verbose command imgB.bmp:

Code: Select all

Image: imgB.bmp
  Format: BMP (Microsoft Windows bitmap image)
  Class: DirectClass
  Geometry: 450x100+0+0
  Resolution: 37.79x37.79
  Print size: 11.9079x2.6462
  Units: PixelsPerCentimeter
  Type: GrayscaleAlpha
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    gray: 8-bit
    alpha: 1-bit
  Channel statistics:
    Pixels: 45000
    Gray:
      min: 0 (0)
      max: 255 (1)
      mean: 197.115 (0.772998)
      standard deviation: 105.713 (0.414559)
      kurtosis: -0.293557
      skewness: -1.29809
      entropy: 0.13894
    Alpha:
      min: 255 (1)
      max: 255 (1)
      mean: 255 (1)
      standard deviation: 0 (0)
      kurtosis: 0
      skewness: 0
      entropy: 0
  Colors: 249
  Histogram:
      9418: (  0,  0,  0,255) #000000FF graya(0,1)
        14: (  1,  1,  1,255) #010101FF graya(1,1)
        15: (  2,  2,  2,255) #020202FF graya(2,1)
        16: (  3,  3,  3,255) #030303FF graya(3,1)
        21: (  4,  4,  4,255) #040404FF graya(4,1)
        10: (  5,  5,  5,255) #050505FF graya(5,1)
        11: (  6,  6,  6,255) #060606FF graya(6,1)
        20: (  7,  7,  7,255) #070707FF graya(7,1)
        18: (  8,  8,  8,255) #080808FF graya(8,1)
        17: (  9,  9,  9,255) #090909FF graya(9,1)
        14: ( 10, 10, 10,255) #0A0A0AFF graya(10,1)
        12: ( 11, 11, 11,255) #0B0B0BFF graya(11,1)
        11: ( 12, 12, 12,255) #0C0C0CFF graya(12,1)
        11: ( 13, 13, 13,255) #0D0D0DFF graya(13,1)
        16: ( 14, 14, 14,255) #0E0E0EFF graya(14,1)
        13: ( 15, 15, 15,255) #0F0F0FFF graya(15,1)
        11: ( 16, 16, 16,255) #101010FF graya(16,1)
        15: ( 17, 17, 17,255) #111111FF graya(17,1)
         7: ( 18, 18, 18,255) #121212FF graya(18,1)
        15: ( 19, 19, 19,255) #131313FF graya(19,1)
        13: ( 20, 20, 20,255) #141414FF graya(20,1)
        10: ( 21, 21, 21,255) #151515FF graya(21,1)
        12: ( 22, 22, 22,255) #161616FF graya(22,1)
        18: ( 23, 23, 23,255) #171717FF graya(23,1)
         7: ( 24, 24, 24,255) #181818FF graya(24,1)
        11: ( 25, 25, 25,255) #191919FF graya(25,1)
        11: ( 26, 26, 26,255) #1A1A1AFF graya(26,1)
         5: ( 27, 27, 27,255) #1B1B1BFF graya(27,1)
        11: ( 28, 28, 28,255) #1C1C1CFF graya(28,1)
        15: ( 29, 29, 29,255) #1D1D1DFF graya(29,1)
         7: ( 30, 30, 30,255) #1E1E1EFF graya(30,1)
         6: ( 31, 31, 31,255) #1F1F1FFF graya(31,1)
        12: ( 32, 32, 32,255) #202020FF graya(32,1)
         8: ( 33, 33, 33,255) #212121FF graya(33,1)
        16: ( 34, 34, 34,255) #222222FF graya(34,1)
         9: ( 35, 35, 35,255) #232323FF graya(35,1)
        10: ( 36, 36, 36,255) #242424FF graya(36,1)
        12: ( 37, 37, 37,255) #252525FF graya(37,1)
         6: ( 38, 38, 38,255) #262626FF graya(38,1)
         9: ( 39, 39, 39,255) #272727FF graya(39,1)
        12: ( 40, 40, 40,255) #282828FF graya(40,1)
         6: ( 41, 41, 41,255) #292929FF graya(41,1)
         7: ( 42, 42, 42,255) #2A2A2AFF graya(42,1)
         8: ( 43, 43, 43,255) #2B2B2BFF graya(43,1)
         3: ( 44, 44, 44,255) #2C2C2CFF graya(44,1)
         6: ( 45, 45, 45,255) #2D2D2DFF graya(45,1)
         6: ( 46, 46, 46,255) #2E2E2EFF graya(46,1)
         5: ( 47, 47, 47,255) #2F2F2FFF graya(47,1)
         2: ( 48, 48, 48,255) #303030FF graya(48,1)
         3: ( 49, 49, 49,255) #313131FF graya(49,1)
         9: ( 50, 50, 50,255) #323232FF graya(50,1)
        11: ( 51, 51, 51,255) #333333FF graya(51,1)
         7: ( 52, 52, 52,255) #343434FF graya(52,1)
         2: ( 53, 53, 53,255) #353535FF graya(53,1)
         3: ( 54, 54, 54,255) #363636FF graya(54,1)
         7: ( 55, 55, 55,255) #373737FF graya(55,1)
         5: ( 56, 56, 56,255) #383838FF graya(56,1)
         9: ( 57, 57, 57,255) #393939FF graya(57,1)
         7: ( 58, 58, 58,255) #3A3A3AFF graya(58,1)
         5: ( 59, 59, 59,255) #3B3B3BFF graya(59,1)
         5: ( 60, 60, 60,255) #3C3C3CFF graya(60,1)
         6: ( 61, 61, 61,255) #3D3D3DFF graya(61,1)
         5: ( 62, 62, 62,255) #3E3E3EFF graya(62,1)
         9: ( 63, 63, 63,255) #3F3F3FFF graya(63,1)
         5: ( 64, 64, 64,255) #404040FF graya(64,1)
         2: ( 65, 65, 65,255) #414141FF graya(65,1)
         5: ( 66, 66, 66,255) #424242FF graya(66,1)
        10: ( 67, 67, 67,255) #434343FF graya(67,1)
         5: ( 68, 68, 68,255) #444444FF graya(68,1)
         5: ( 69, 69, 69,255) #454545FF graya(69,1)
         7: ( 70, 70, 70,255) #464646FF graya(70,1)
         5: ( 71, 71, 71,255) #474747FF graya(71,1)
         5: ( 72, 72, 72,255) #484848FF graya(72,1)
         9: ( 73, 73, 73,255) #494949FF graya(73,1)
         6: ( 74, 74, 74,255) #4A4A4AFF graya(74,1)
         6: ( 75, 75, 75,255) #4B4B4BFF graya(75,1)
         4: ( 76, 76, 76,255) #4C4C4CFF graya(76,1)
         3: ( 77, 77, 77,255) #4D4D4DFF graya(77,1)
         3: ( 78, 78, 78,255) #4E4E4EFF graya(78,1)
         7: ( 79, 79, 79,255) #4F4F4FFF graya(79,1)
         5: ( 80, 80, 80,255) #505050FF graya(80,1)
         4: ( 81, 81, 81,255) #515151FF graya(81,1)
         4: ( 82, 82, 82,255) #525252FF graya(82,1)
         7: ( 83, 83, 83,255) #535353FF graya(83,1)
         4: ( 84, 84, 84,255) #545454FF graya(84,1)
         7: ( 85, 85, 85,255) #555555FF graya(85,1)
         2: ( 86, 86, 86,255) #565656FF graya(86,1)
         4: ( 87, 87, 87,255) #575757FF graya(87,1)
         5: ( 89, 89, 89,255) #595959FF graya(89,1)
         4: ( 90, 90, 90,255) #5A5A5AFF graya(90,1)
         5: ( 91, 91, 91,255) #5B5B5BFF graya(91,1)
         3: ( 92, 92, 92,255) #5C5C5CFF graya(92,1)
         6: ( 93, 93, 93,255) #5D5D5DFF graya(93,1)
         4: ( 95, 95, 95,255) #5F5F5FFF graya(95,1)
         6: ( 96, 96, 96,255) #606060FF graya(96,1)
         3: ( 97, 97, 97,255) #616161FF graya(97,1)
         4: ( 98, 98, 98,255) #626262FF graya(98,1)
         4: ( 99, 99, 99,255) #636363FF graya(99,1)
         3: (100,100,100,255) #646464FF graya(100,1)
         3: (101,101,101,255) #656565FF graya(101,1)
         5: (102,102,102,255) #666666FF graya(102,1)
         1: (103,103,103,255) #676767FF graya(103,1)
         3: (104,104,104,255) #686868FF graya(104,1)
         3: (105,105,105,255) #696969FF graya(105,1)
         3: (106,106,106,255) #6A6A6AFF graya(106,1)
         2: (107,107,107,255) #6B6B6BFF graya(107,1)
         1: (108,108,108,255) #6C6C6CFF graya(108,1)
         1: (109,109,109,255) #6D6D6DFF graya(109,1)
         5: (110,110,110,255) #6E6E6EFF graya(110,1)
         3: (111,111,111,255) #6F6F6FFF graya(111,1)
         1: (112,112,112,255) #707070FF graya(112,1)
         3: (113,113,113,255) #717171FF graya(113,1)
         1: (114,114,114,255) #727272FF graya(114,1)
         2: (115,115,115,255) #737373FF graya(115,1)
         3: (116,116,116,255) #747474FF graya(116,1)
         1: (117,117,117,255) #757575FF graya(117,1)
         3: (118,118,118,255) #767676FF graya(118,1)
         1: (119,119,119,255) #777777FF graya(119,1)
         2: (120,120,120,255) #787878FF graya(120,1)
         4: (121,121,121,255) #797979FF graya(121,1)
         4: (122,122,122,255) #7A7A7AFF graya(122,1)
         3: (123,123,123,255) #7B7B7BFF graya(123,1)
         4: (124,124,124,255) #7C7C7CFF graya(124,1)
         1: (125,125,125,255) #7D7D7DFF graya(125,1)
         3: (126,126,126,255) #7E7E7EFF graya(126,1)
         3: (128,128,128,255) #808080FF graya(128,1)
         1: (129,129,129,255) #818181FF graya(129,1)
         5: (130,130,130,255) #828282FF graya(130,1)
         4: (131,131,131,255) #838383FF graya(131,1)
         1: (132,132,132,255) #848484FF graya(132,1)
         4: (133,133,133,255) #858585FF graya(133,1)
         3: (135,135,135,255) #878787FF graya(135,1)
         1: (136,136,136,255) #888888FF graya(136,1)
         5: (137,137,137,255) #898989FF graya(137,1)
         4: (138,138,138,255) #8A8A8AFF graya(138,1)
         2: (139,139,139,255) #8B8B8BFF graya(139,1)
         3: (140,140,140,255) #8C8C8CFF graya(140,1)
         1: (141,141,141,255) #8D8D8DFF graya(141,1)
         2: (142,142,142,255) #8E8E8EFF graya(142,1)
         2: (143,143,143,255) #8F8F8FFF graya(143,1)
         2: (144,144,144,255) #909090FF graya(144,1)
         2: (145,145,145,255) #919191FF graya(145,1)
         4: (146,146,146,255) #929292FF graya(146,1)
         2: (147,147,147,255) #939393FF graya(147,1)
         2: (148,148,148,255) #949494FF graya(148,1)
         2: (149,149,149,255) #959595FF graya(149,1)
         1: (151,151,151,255) #979797FF graya(151,1)
         2: (152,152,152,255) #989898FF graya(152,1)
         5: (153,153,153,255) #999999FF graya(153,1)
         2: (154,154,154,255) #9A9A9AFF graya(154,1)
         5: (155,155,155,255) #9B9B9BFF graya(155,1)
         2: (156,156,156,255) #9C9C9CFF graya(156,1)
         2: (157,157,157,255) #9D9D9DFF graya(157,1)
         3: (158,158,158,255) #9E9E9EFF graya(158,1)
         4: (159,159,159,255) #9F9F9FFF graya(159,1)
         4: (160,160,160,255) #A0A0A0FF graya(160,1)
         3: (161,161,161,255) #A1A1A1FF graya(161,1)
         3: (162,162,162,255) #A2A2A2FF graya(162,1)
         3: (163,163,163,255) #A3A3A3FF graya(163,1)
         2: (164,164,164,255) #A4A4A4FF graya(164,1)
         4: (165,165,165,255) #A5A5A5FF graya(165,1)
         2: (166,166,166,255) #A6A6A6FF graya(166,1)
         1: (167,167,167,255) #A7A7A7FF graya(167,1)
         3: (168,168,168,255) #A8A8A8FF graya(168,1)
         1: (169,169,169,255) #A9A9A9FF graya(169,1)
         3: (170,170,170,255) #AAAAAAFF graya(170,1)
         1: (171,171,171,255) #ABABABFF graya(171,1)
         2: (172,172,172,255) #ACACACFF graya(172,1)
         1: (173,173,173,255) #ADADADFF graya(173,1)
         4: (174,174,174,255) #AEAEAEFF graya(174,1)
         2: (175,175,175,255) #AFAFAFFF graya(175,1)
         2: (176,176,176,255) #B0B0B0FF graya(176,1)
         2: (177,177,177,255) #B1B1B1FF graya(177,1)
         1: (178,178,178,255) #B2B2B2FF graya(178,1)
         5: (179,179,179,255) #B3B3B3FF graya(179,1)
         7: (180,180,180,255) #B4B4B4FF graya(180,1)
         6: (181,181,181,255) #B5B5B5FF graya(181,1)
         2: (182,182,182,255) #B6B6B6FF graya(182,1)
         2: (183,183,183,255) #B7B7B7FF graya(183,1)
         2: (184,184,184,255) #B8B8B8FF graya(184,1)
         3: (185,185,185,255) #B9B9B9FF graya(185,1)
         3: (186,186,186,255) #BABABAFF graya(186,1)
         3: (187,187,187,255) #BBBBBBFF graya(187,1)
         3: (188,188,188,255) #BCBCBCFF graya(188,1)
         6: (189,189,189,255) #BDBDBDFF graya(189,1)
         6: (190,190,190,255) #BEBEBEFF graya(190,1)
         3: (191,191,191,255) #BFBFBFFF graya(191,1)
         1: (192,192,192,255) #C0C0C0FF graya(192,1)
         3: (193,193,193,255) #C1C1C1FF graya(193,1)
         6: (194,194,194,255) #C2C2C2FF graya(194,1)
         4: (195,195,195,255) #C3C3C3FF graya(195,1)
         1: (196,196,196,255) #C4C4C4FF graya(196,1)
         2: (197,197,197,255) #C5C5C5FF graya(197,1)
         2: (198,198,198,255) #C6C6C6FF graya(198,1)
         1: (199,199,199,255) #C7C7C7FF graya(199,1)
         2: (200,200,200,255) #C8C8C8FF graya(200,1)
         1: (201,201,201,255) #C9C9C9FF graya(201,1)
         2: (202,202,202,255) #CACACAFF graya(202,1)
         6: (203,203,203,255) #CBCBCBFF graya(203,1)
         1: (204,204,204,255) #CCCCCCFF graya(204,1)
         2: (205,205,205,255) #CDCDCDFF graya(205,1)
         6: (206,206,206,255) #CECECEFF graya(206,1)
         2: (207,207,207,255) #CFCFCFFF graya(207,1)
         2: (208,208,208,255) #D0D0D0FF graya(208,1)
         4: (209,209,209,255) #D1D1D1FF graya(209,1)
         1: (210,210,210,255) #D2D2D2FF graya(210,1)
         3: (211,211,211,255) #D3D3D3FF graya(211,1)
         2: (212,212,212,255) #D4D4D4FF graya(212,1)
         3: (213,213,213,255) #D5D5D5FF graya(213,1)
         1: (214,214,214,255) #D6D6D6FF graya(214,1)
         4: (215,215,215,255) #D7D7D7FF graya(215,1)
         2: (216,216,216,255) #D8D8D8FF graya(216,1)
         3: (217,217,217,255) #D9D9D9FF graya(217,1)
         2: (218,218,218,255) #DADADAFF graya(218,1)
         3: (219,219,219,255) #DBDBDBFF graya(219,1)
         1: (220,220,220,255) #DCDCDCFF graya(220,1)
         1: (221,221,221,255) #DDDDDDFF graya(221,1)
         2: (222,222,222,255) #DEDEDEFF graya(222,1)
         2: (223,223,223,255) #DFDFDFFF graya(223,1)
         6: (224,224,224,255) #E0E0E0FF graya(224,1)
         4: (225,225,225,255) #E1E1E1FF graya(225,1)
         2: (226,226,226,255) #E2E2E2FF graya(226,1)
         2: (227,227,227,255) #E3E3E3FF graya(227,1)
         1: (228,228,228,255) #E4E4E4FF graya(228,1)
         1: (229,229,229,255) #E5E5E5FF graya(229,1)
         2: (230,230,230,255) #E6E6E6FF graya(230,1)
         2: (231,231,231,255) #E7E7E7FF graya(231,1)
         1: (232,232,232,255) #E8E8E8FF graya(232,1)
         1: (233,233,233,255) #E9E9E9FF graya(233,1)
         3: (234,234,234,255) #EAEAEAFF graya(234,1)
         2: (235,235,235,255) #EBEBEBFF graya(235,1)
         2: (236,236,236,255) #ECECECFF graya(236,1)
         2: (238,238,238,255) #EEEEEEFF graya(238,1)
         1: (239,239,239,255) #EFEFEFFF graya(239,1)
         2: (240,240,240,255) #F0F0F0FF graya(240,1)
         2: (241,241,241,255) #F1F1F1FF graya(241,1)
         1: (242,242,242,255) #F2F2F2FF graya(242,1)
         3: (243,243,243,255) #F3F3F3FF graya(243,1)
         2: (244,244,244,255) #F4F4F4FF graya(244,1)
         1: (245,245,245,255) #F5F5F5FF graya(245,1)
         4: (246,246,246,255) #F6F6F6FF graya(246,1)
         7: (247,247,247,255) #F7F7F7FF graya(247,1)
         3: (248,248,248,255) #F8F8F8FF graya(248,1)
         1: (249,249,249,255) #F9F9F9FF graya(249,1)
         5: (250,250,250,255) #FAFAFAFF graya(250,1)
         5: (251,251,251,255) #FBFBFBFF graya(251,1)
         3: (252,252,252,255) #FCFCFCFF graya(252,1)
         4: (254,254,254,255) #FEFEFEFF graya(254,1)
     34393: (255,255,255,255) #FFFFFFFF graya(255,1)
  Rendering intent: Perceptual
  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: graya(255,1)
  Border color: graya(223,1)
  Matte color: graya(189,1)
  Transparent color: graya(0,0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 450x100+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Undefined
  Orientation: Undefined
  Properties:
    date:create: 2019-03-29T19:02:45+01:00
    date:modify: 2019-03-29T19:02:45+01:00
    signature: 8511b866580111138995b93a2fd85b7e6b7511367733b55e29fd5e58651b0c07
  Artifacts:
    filename: Novomatic.bmp
    verbose: true
  Tainted: False
  Filesize: 180KB
  Number pixels: 45K
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
I would like to convert imgB.bmp to the same parameters as imgA.bmp (apart from resolution).
I have executed the following command:

Code: Select all

convert imgB.bmp -alpha off -depth 1 BMP3:newImgB.bmp
A new file has the following parameters:

file command:

Code: Select all

newImgB.bmp: PC bitmap, Windows 3.x format, 450 x 100 x 24
Now I'm confused what x 24 means. Could you explain it ?

Moreover there are still few other differences:

identify -verbose command:

Code: Select all

Image: newImg.bmp
  Format: BMP3 (Microsoft Windows bitmap image (V3))
  Class: DirectClass
  Geometry: 450x100+0+0
  Resolution: 37.79x37.79
  Print size: 11.9079x2.6462
  Units: PixelsPerCentimeter
  Type: Bilevel
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8/1-bit
  Channel depth:
    gray: 1-bit
  Channel statistics:
    Pixels: 45000
    Gray:
      min: 0 (0)
      max: 255 (1)
      mean: 196.758 (0.7716)
      standard deviation: 107.049 (0.419802)
      kurtosis: -0.325708
      skewness: -1.29394
      entropy: 0.775212
  Colors: 2
  Histogram:
     10278: (  0,  0,  0) #000000 gray(0)
     34722: (255,255,255) #FFFFFF gray(255)
  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: gray(255)
  Border color: gray(223)
  Matte color: gray(189)
  Transparent color: gray(0)
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 450x100+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: Undefined
  Properties:
    date:create: 2019-03-29T19:43:38+01:00
    date:modify: 2019-03-29T19:43:38+01:00
    signature: e0dec3e74b48b5c4d1cbdc71481641d5b671eabea05947e85d8fb9033539ee46
  Artifacts:
    filename: NovomaticC.bmp
    verbose: true
  Tainted: False
  Filesize: 135KB
  Number pixels: 45K
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
What can I do more to make newImgB.bmp identical to imgA.bmp (apart from the resolution) ?

Re: converting bitmap to the same parameters as other bitmap (apart from the resolution)

Posted: 2019-03-29T13:51:53-07:00
by Irbis88
I have found this article: https://poizan.dk/blog/2014/02/28/monoc ... agemagick/ and it looks like I should use:

Code: Select all

-monochrome -color 2

Re: converting bitmap to the same parameters as other bitmap (apart from the resolution)

Posted: 2019-03-29T15:50:51-07:00
by fmw42

Code: Select all

convert image.bmp BMP3:image.bmp
That will convert all bmp file to BMP3: format.