Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I suggest you use either "-colorspace" or "-profile", but not both.
Different software will have different resizing code, so I would expect some difference, but probably not noticeable for ordinary photographs. Please quantify your finding of "a little bit brighter".
What is your Original.tif? CMYK, sRGB, etc? Does it have an embedded profile? If it is some form of RGB with no embedded profile, then that is the problem. The cure is to assign a correct RGB profile, and convert it to a CMYK profile.
I would suggest you resize the RGB image first, then convert to cmyk with a CMYK profile. You may need two profiles -- the first is sRGB.icc and the second is CMYK (usually USWebCoatedSWOP.icc), if your input RGB tiff has no color profile.
OK I use only the -profile command. And resize the RGB image first, then convert to cmyk with the CMYK profile.
So I have done many tests but without success. The IM Image is a little bit brighter than the PS image.
Please can you have a look to my images. Thank you for your help!
Your input has an embedded profile, so your IM command isn't assigning a new profile but converting to the new profile. If you assign in Photoshop, that's the problem.
Your PS and IM versions use different ICC profiles, so that will create a numeric difference. It will also create a visual difference when resizing.
Numerically, the IM result is a bit lighter. The mean CMYK (on a scale of 0.0 to 1.0) for IM is 0.268561, and for PS is 0.276897. The difference is 0.008336, and is just visible in this example.
Harald wrote:But what can I do, to get same result as in Photoshop?
For a start, do the same operations with the same data. Your IM command converts the profile to a new one. Ensure your Photoshop process also converts to a new profile, and use the same one as IM.
I use also Convert to profile in Photoshop. And I get the difference.
In Photoshop Convert to profile dialog;
Source colorspace: eciRGB v2
Target colorspace: ISO coated v2 300% (ECI)
Engine: Adobe (ACE)
Intent: Relative Colormetric
Checked Use Black Point compensation
Checcked Use dither
IM delegates profile work to LCMS. I don't know if LCMS can dither when converting to a new profile.
I'm not sure that dithering when converting to a new profile is a good idea. It reduces accuracy, so it seems more sensible to defer this until the final step of image processing, if you need it at all.