ImageMagick outputs an empty image when using the `-morphology` paramter

Solution 1:

[...] I was using [ImageMagick version] 7 and after downgrading to 6.9 issue fixed [...]

Answer from OP's comment