CMYK MagickColor strange behaviour
Posted: 2018-04-03T08:00:32-07:00
Hi everyone,
I have a simple Gray image and I want to convert it to CMYK and use the opaque method to fill the rectangle.
My CMYK color should be: C:50 M:9 Y:98 K:61.
The image is here:
https://www.dropbox.com/s/22bq0clwrb3xo ... 0C%29?dl=0
My code:
I open the TIFF with Photoshop and the box with the following CMYK percentages: C:77 M:99 Y:0 K:4.
I tried every possible combination.
I also tried CMYKColor with bytes and Percentages but the result is always wrong.
I'm using .NET 4 Q8 x64 version.
If I process the same command with magick.exe command line:
the resulting TIFF is OK.
What am I doing wrong?
Thank you,
Denis
I have a simple Gray image and I want to convert it to CMYK and use the opaque method to fill the rectangle.
My CMYK color should be: C:50 M:9 Y:98 K:61.
The image is here:
https://www.dropbox.com/s/22bq0clwrb3xo ... 0C%29?dl=0
My code:
Code: Select all
MagickImage miPantone1 = new MagickImage(@"E:\CMYK+4SPOT.pdf (PANTONE 371 C)");
miPantone1.Transparent(MagickColors.White);
miPantone1.ColorSpace = ColorSpace.CMYK;
miPantone1.Opaque(MagickColors.Black, new MagickColor(128,23,250,156,255));
miPantone1.Write(@"E:\out.tiff");
I tried every possible combination.
I also tried CMYKColor with bytes and Percentages but the result is always wrong.
I'm using .NET 4 Q8 x64 version.
If I process the same command with magick.exe command line:
Code: Select all
magick "CMYK+4SPOT.pdf (PANTONE 371 C)" -transparent White -set colorspace CMYK -fill cmyk(128,23,250,156) -opaque cmyk(0,0,0,0) out.tiff
What am I doing wrong?
Thank you,
Denis