Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-working example at https://legacy.imagemagick.org/Usage/masking/#bg_remove #6

Open
FifoIronton opened this issue Feb 10, 2024 · 1 comment

Comments

@FifoIronton
Copy link

Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org, Ubuntu 20.04, x86_64

Example under https://legacy.imagemagick.org/Usage/masking/#bg_remove does not work.
Downloading the example images, I expect the second command

convert overlay_difference.png -channel RGBA -separate +channel \
          -evaluate-sequence add  -threshold 0   overlay_mask.png

to output the image shown at https://legacy.imagemagick.org/Usage/masking/overlay_mask.png . Instead, I get a pure-white image.
Editing the command to

convert overlay_difference.png -channel RGB -separate +channel \
          -evaluate-sequence add  -threshold 0   overlay_mask.png

generates the expected mask.

I cannot figure out where the source for the legacy Usage section of the website is hosted, but the corresponding page for the new site is found here: https://github.com/ImageMagick/Usage/blob/c6dc6493a7de33503a569f9236c2be2be3c64d38/masking/index.html#L2566

urban-warrior pushed a commit to ImageMagick/Usage that referenced this issue May 18, 2024
@urban-warrior
Copy link
Member

We corrected the documentation as you recommended. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants