I am using Imagick to convert a QR generated from Google Charts to the Color space CMYK. I want to convert the QR code to CMYK for printing purposes. However, when I convert the QR code, the black turns into white and the white turns into black.
This is the code I'm using:
$i = new Imagick($imgFileName);
I'm also attaching a before and after of the color space conversion.
Do you know why the colors are reversing?