Page 1 of 1

Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Posted: 2019-09-02T19:56:27+00:00
by peej
Hi everyone - I just recently upgraded to v7 and I noticed that my morphology command is not working as it was before. In v7, it seems to brighten the colors of the image.

Input image:
Image

In v6.9.6-7:

Code: Select all

convert plus-reduced.png -morphology DilateIntensity Diamond v6-plus-morph.png
Image

In v7.0.8-63:

Code: Select all

magick plus-reduced.png -morphology DilateIntensity Diamond v7-plus-morph.png
Image

In v7 I tried it in Q8, I tried the command with "magick convert", I tried "Dilate" by itself, and tried to apply the command to each grayscale channel, but with no luck. I'm hoping it's something I'm doing, but if not, hopefully it's a quick fix.

Thanks!

Re: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Posted: 2019-09-02T21:10:11+00:00
by fmw42
I can duplicate the issue with IM 6.9.10.63 Q16 and IM 7.0.8.63 Q16 HDRI on Mac OSX Sierra. But I am not sure which is correct. Nevertheless, I would think theys should be the same.

I even tried setting -intensity rec709luma for both commands before -morphology, but it did not make any difference.

Re: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Posted: 2019-09-02T21:53:09+00:00
by peej
Thanks for confirming! From what I read in the documentation, intensity variants do not generate any new colors - which is perfect for my scenario. So I'm hoping v7 can follow v6.

Re: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Posted: 2019-09-02T22:44:23+00:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Posted: 2019-09-02T23:12:18+00:00
by peej
Awesome! Thanks so much the quick response and fix!