Compare colors aren't correct for CMYK source images
Posted: 2018-02-26T07:27:01-07:00
Hi everyone,
I have a problem when using the compare command with CMYK input images. It seems that the highlight and lowlight colors of the compare result are inverted or converted incorrectly. The red highlight color becomes cyan and the white transparent lowlight color becomes black(?) transparent. Also if I define a highlight color by name i.e. "seagreen" the compare result shows the wrong color as well.
I tested it with two different ImageMagick versions:
ImageMagick 6.8.6-10 2017-07-17 Q16 / Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic x86_64)
-> CORRECT
ImageMagick 7.0.7-4 Q16 x86_64 2017-09-29 / Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic x86_64)
-> NOT CORRECT
The former version is the one we are currently using the latter one is the version we want to upgrade to but has the described issue. You can download my test data using the following link:
CompareTest.zip
I used the following commands:
Can anyone reproduce the problem or know how to solve it? Thanks!
I have a problem when using the compare command with CMYK input images. It seems that the highlight and lowlight colors of the compare result are inverted or converted incorrectly. The red highlight color becomes cyan and the white transparent lowlight color becomes black(?) transparent. Also if I define a highlight color by name i.e. "seagreen" the compare result shows the wrong color as well.
I tested it with two different ImageMagick versions:
ImageMagick 6.8.6-10 2017-07-17 Q16 / Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic x86_64)
-> CORRECT
ImageMagick 7.0.7-4 Q16 x86_64 2017-09-29 / Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic x86_64)
-> NOT CORRECT
The former version is the one we are currently using the latter one is the version we want to upgrade to but has the described issue. You can download my test data using the following link:
CompareTest.zip
I used the following commands:
Code: Select all
compare -metric AE CompareTest_A.jpg CompareTest_B.jpg CompareTest_OUT.jpg.pdf
compare -metric AE CompareTest_A.pdf CompareTest_B.pdf CompareTest_OUT.pdf.pdf
compare -metric AE CompareTest_A.tif CompareTest_B.tif CompareTest_OUT.tif.pdf
compare -metric AE -highlight-color seagreen CompareTest_A.jpg CompareTest_B.jpg CompareTest_OUT-seagreen.jpg.pdf
compare -metric AE -highlight-color seagreen CompareTest_A.pdf CompareTest_B.pdf CompareTest_OUT-seagreen.pdf.pdf
compare -metric AE -highlight-color seagreen CompareTest_A.tif CompareTest_B.tif CompareTest_OUT-seagreen.tif.pdf