Converting any image to 16 colour BMP (4 bits depth) as in MS Paint
Posted: 2019-03-18T04:06:17-07:00
Good time,
I work with E-inc displays and I need to load BMP images with 4-bit depth. Images saved using MS Paint in the BMP with 16 colours are displayed correctly.
Converting with ImageMagick does not match with Paint and is displayed on the screen is very faded. I'm trying to make the conversion as same as possible to MS Paint version.
For example, I tried the following commands:
convert input -type Palette + dither -colors 16 -depth 4 BMP3:output.bmp
convert input -type Grayscale -white-threshold 3000% +dither -colors 16 -depth 4 BMP3: output.bmp
Paint, before converting, does some kind of conversion over pixels - it's unclear what.
https://ibb.co/2ZpcMFs - via Paint
https://ibb.co/5hvWL4b - via ImageMagick
I work with E-inc displays and I need to load BMP images with 4-bit depth. Images saved using MS Paint in the BMP with 16 colours are displayed correctly.
Converting with ImageMagick does not match with Paint and is displayed on the screen is very faded. I'm trying to make the conversion as same as possible to MS Paint version.
For example, I tried the following commands:
convert input -type Palette + dither -colors 16 -depth 4 BMP3:output.bmp
convert input -type Grayscale -white-threshold 3000% +dither -colors 16 -depth 4 BMP3: output.bmp
Paint, before converting, does some kind of conversion over pixels - it's unclear what.
https://ibb.co/2ZpcMFs - via Paint
https://ibb.co/5hvWL4b - via ImageMagick