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

Closed
pgajdos opened this issue Jan 15, 2025 · 4 comments
Closed

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

pgajdos opened this issue Jan 15, 2025 · 4 comments

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.

@urban-warrior
Copy link
Member

Thank you for reporting the issue. We have successfully reproduced it and are actively working on a patch to resolve it. You can expect this patch to be merged into the main GIT branch, later today. As part of our commitment to quality, this fix will also be included in the upcoming beta releases of ImageMagick by tomorrow. Your patience and feedback are greatly appreciated.

@pgajdos
Copy link
Author

pgajdos commented Jan 20, 2025

Thank you a lot, much appreciated!

Just one nitpick, according:

https://www.imagemagick.org/discourse-server/viewtopic.php?p=147784&sid=49f72e9a671776e25cd8827fe9d2325c#p147784

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

I guess this should be changed to the longer version in the doc, right?

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

@pgajdos
Copy link
Author

pgajdos commented Jan 20, 2025

Anyway: thank you. Gollowing have expected result after applying latest changes from git.

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

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