Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
peej
Posts: 4
Joined: 2016-01-26T09:23:49-07:00
Authentication code: 1151

Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
peej
Posts: 4
Joined: 2016-01-26T09:23:49-07:00
Authentication code: 1151

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
peej
Posts: 4
Joined: 2016-01-26T09:23:49-07:00
Authentication code: 1151

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

Post by peej »

Awesome! Thanks so much the quick response and fix!
Post Reply