8 bits per pixel grayscale bmp becomes 24 bits per pixel bmp after extending it. #4439
-
I use this command to extend the image.
I have tried using
The version of the ImageMagick I am using is “ImageMagick 7.1.0-13 Q16-HDRI x64 2021-10-29” |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Please show in.bmp so we can try to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
-
For me with IM v7.1.0-4, that gives a non-palette file, with 24 bits per pixel. Using "-type palette" makes a palette output. |
Beta Was this translation helpful? Give feedback.
-
End up solving the problem by turn off the dithering, using the |
Beta Was this translation helpful? Give feedback.
End up solving the problem by turn off the dithering, using the
-dither None
option.magick in.bmp -background black -gravity center -extent 258x258 -dither None -compress None -colors 256 BMP3:out.bmp