I've got an gray scale raw image where every pixel is one byte in the range 0=black, 15=white. I wanted to convert this, and thought the -level option was the right one.
Code: Select all
convert -size 104x160 -depth 8 gray:input -level 0,15 output.png
To test this, create a grayscale image
Code: Select all
convert -size 16x16 -depth 8 "gradient:black-gray(15)" 1.png
Code: Select all
convert 1.png -level 0,15 2.png
Is this a bug or am I using '-level' wrong?
Using Version: ImageMagick 6.9.9-11 Q16 x86_64 2017-09-30
(for Cygwin)