You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have question about behavioral change between ImageMagick 6 and ImageMagick 7. I have tested with 6.9.9-46 and 7.0.7-34. The test is based on example page.
To be clear, I do not intend to create one color images that way; I consider this just as a testcase that could exhibit a bug potentially.
1. creating black image with -gamma 0
(A) convert test.png -gamma 0 -alpha off black_gamma.png
(B) convert test.png \
-channel red -gamma 0 \
-channel green -gamma 0 \
-channel blue -gamma 0 \
-alpha off black_gamma.png
both (A) and (B) works as described in the example page for 6.9.9-46 and both produce:
both (A) and (B) both produce 7.0.7-34:
I have tried few triplets of -gamma: (1.0, 1.0, 1.0), (2.0, 2.0, 2.0), (2.0, 2.0, 1.0), (3.0, 3.0, 3.0), (0.5, 0.5, 0.5), (0.1, 0.1, 0.1) and of course (0, 0, 0). Results seem to my human eye to be equal for IM6 and IM7, except just (0, 0, 0). Unfortunately I am far from being image processing expert and I do not see the reasoning behind the results.
2. creating yellow image with -gamma -1, -1, 0
This is perhaps related to previous problem. Consider following command:
(A) convert test.png -gamma -1,-1,0 -alpha off yellow_gamma.png
(B) convert test.png \
-channel red -gamma -1 \
-channel green -gamma -1 \
-channel blue -gamma 0 \
-alpha off \
yellow_gamma.png
Command (A) will not work with ImageMagick 7 anymore, see this topic for details.
Both (A) and (B) commands produce pure yellow image for 6.9.9-46.
(B) produces almost pure yellow image in ImageMagick 7, except the area with
pixels with fraction of blue in it.
Again, if you consider this as not a bug, fine with me, we will adjust our test cases according to new results and/or Anthony's proposals sent privately.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I have question about behavioral change between ImageMagick 6 and ImageMagick 7. I have tested with 6.9.9-46 and 7.0.7-34. The test is based on example page.
To be clear, I do not intend to create one color images that way; I consider this just as a testcase that could exhibit a bug potentially.
1. creating black image with -gamma 0
I have tried few triplets of -gamma: (1.0, 1.0, 1.0), (2.0, 2.0, 2.0), (2.0, 2.0, 1.0), (3.0, 3.0, 3.0), (0.5, 0.5, 0.5), (0.1, 0.1, 0.1) and of course (0, 0, 0). Results seem to my human eye to be equal for IM6 and IM7, except just (0, 0, 0). Unfortunately I am far from being image processing expert and I do not see the reasoning behind the results.
2. creating yellow image with -gamma -1, -1, 0
This is perhaps related to previous problem. Consider following command:
pixels with fraction of blue in it.
Again, if you consider this as not a bug, fine with me, we will adjust our test cases according to new results and/or Anthony's proposals sent privately.
Thank you!
The text was updated successfully, but these errors were encountered: