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

magick -gamma -1,-1,0 does not produce all-yellow image #9

Open
pgajdos opened this issue Jan 15, 2025 · 1 comment
Open

magick -gamma -1,-1,0 does not produce all-yellow image #9

pgajdos opened this issue Jan 15, 2025 · 1 comment

Comments

@pgajdos
Copy link

pgajdos commented Jan 15, 2025

magick ../test.png  -gamma -1,-1,0  -alpha off  yellow_gamma.png

taken from https://usage.imagemagick.org/canvas/ does not produce all-yellow image, but rather all-white one.

Or

magick ../test.png -channel red -gamma -1 -channel green -gamma -1 -channel blue -gamma 0 -alpha off yellow_gamma.png

produces

yellow_gamma

Similar to ImageMagick/ImageMagick#1151.

Tested with 7.1.1-43.

@pgajdos
Copy link
Author

pgajdos commented Jan 15, 2025

magick convert ../test.png -channel red -gamma -1 -channel green -gamma -1 -channel blue -gamma 0 -alpha off yellow_gamma.png

(the longer version + magick convert instead of magick) produces expected result, i. e. all-yellow image.

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

1 participant