Mercier
Mercier

Reputation: 96

PythonMagick - why the parameters do not reflect the ones of 'convert'

I'm doing

img = PythonMagick.Image('image.jpg')
img.threshold(30)

Why this does not correspond to manually running

convert -threshold 30%

Same for 0.3. Similar problem with blur 0x1

EDIT: From documentation, threshold is related to quantum depth, which is usually 65536... So 30% is 19660.8 and the thread is solved?

Upvotes: 0

Views: 157

Answers (0)

Related Questions