spoggles
asked on
php convert rgb to cmyk
Hello Experts!
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->setImageFormat('jpg');
$i->setImageColorspace(Ima gick::COLO RSPACE_GRA Y);
$i->writeImage($newFileNam e);
I'm also attaching a before and after of the color space conversion.
Do you know why the colors are reversing?
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->setImageFormat('jpg');
$i->setImageColorspace(Ima
$i->writeImage($newFileNam
I'm also attaching a before and after of the color space conversion.
Do you know why the colors are reversing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I got the same converted image after using your code, that is both the images are same in my case. May be you have to check the GD library information for this.