I think there is a bug when performing evaluate on certain values.
My original pixel values are:
Code: Select all
0,0: (29812,27242, 8738) #74746A6A2222 srgb(116,106,34)
Code: Select all
-evaluate divide 64 -evaluate subtract 124
Code: Select all
0,0: ( 257, 257, 0) #010101010000 srgb(1,1,0)
if I subtract 125 then I get:
Code: Select all
0,0: ( 0, 514, 0) #000002020000 srgb(0,2,0)
If I subtract even more i.e. 129 the result is:
0,0: ( 257, 257, 0) #010101010000 srgb(1,1,0)
which is correct.
The image is in sRGB colorspace and that's the only operation I perform on it:
/opt/local/bin/convert [INPUT] -evaluate divide 64 -evaluate subtract 128 [OUTPUT]
Version: ImageMagick 6.7.7-2 2012-07-07 Q16