Page 1 of 1

[Solved] Wrong colors in image - CMYK/ICC

Posted: Wed Apr 26, 2017 6:47 pm
by lian
Hello, I don’t get the good colors in particular file when resizing with NConvert. No problem with XnViewMP or XnConvert - à droite les bonnes couleurs.
xnconvert.png
Fichier original https://framadrop.org/r/6skE8vWJpD#AMt6 ... LLrrjG/CU=

Re: not the right colors

Posted: Wed Apr 26, 2017 7:06 pm
by cday
Your image is CMYK, are you including theses switches in your code?

Code: Select all

-ctype cmyk 	  : Channel Type (Raw)

-cmyk_space		: Convert if possible in CMYK space
I haven't actually worked with CMYK files myself so you may need to experiment a bit, and I'm not sure whether -ctype is only relevant to Raw files.

(Edited).

Re: not the right colors

Posted: Wed Apr 26, 2017 9:41 pm
by lian
Thanks for quick answer. I will take a look.

Re: not the right colors

Posted: Thu Apr 27, 2017 7:25 am
by lian
Thanks again. I had to add to get the exact colors and keep ICC profile

Code: Select all

-keep_icc -icc

Re: not the right colors

Posted: Thu Apr 27, 2017 7:50 am
by cday
lian wrote:I had to add to get the exact colors and keep ICC profile:

Code: Select all

-keep_icc -icc
In addition to using one of the CMYK switches, or was it not necessary to include either?

Could you post an example command line that works, which might help someone else in the future?

Re: [Solved] Wrong colors in image - CMYK/ICC

Posted: Thu Apr 27, 2017 11:50 am
by lian
I use to resize to 1200 px the longest size:

Code: Select all

-ctype cmyk -cmyk_space -keep_icc -icc -ratio -rtype lanczos -rflag orient -quiet -resize longest 1200 -out jpeg -o

Re: [Solved] Wrong colors in image - CMYK/ICC

Posted: Thu Apr 27, 2017 12:00 pm
by cday
Thank you for posting your example. :D

I wonder if the -ctype cmyk : Channel Type (Raw) switch is needed for a JPEG input, but it works anyway... :?: :D