[Solved] Wrong colors in image - CMYK/ICC

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

lian
Posts: 207
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

[Solved] Wrong colors in image - CMYK/ICC

Postby lian » Wed Apr 26, 2017 6:47 pm

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=
Last edited by lian on Thu Apr 27, 2017 7:26 am, edited 1 time in total.
SF, illustrations et mes BD sur mon blog: http://www.li-an.fr/blog
Windows 10 Home 64 bits

cday
XnThusiast
Posts: 1427
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: not the right colors

Postby cday » Wed Apr 26, 2017 7:06 pm

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).

lian
Posts: 207
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: not the right colors

Postby lian » Wed Apr 26, 2017 9:41 pm

Thanks for quick answer. I will take a look.
SF, illustrations et mes BD sur mon blog: http://www.li-an.fr/blog
Windows 10 Home 64 bits

lian
Posts: 207
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: not the right colors

Postby lian » Thu Apr 27, 2017 7:25 am

Thanks again. I had to add to get the exact colors and keep ICC profile

Code: Select all

-keep_icc -icc
SF, illustrations et mes BD sur mon blog: http://www.li-an.fr/blog
Windows 10 Home 64 bits

cday
XnThusiast
Posts: 1427
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: not the right colors

Postby cday » Thu Apr 27, 2017 7:50 am

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?

lian
Posts: 207
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

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

Postby lian » Thu Apr 27, 2017 11:50 am

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
SF, illustrations et mes BD sur mon blog: http://www.li-an.fr/blog
Windows 10 Home 64 bits

cday
XnThusiast
Posts: 1427
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

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

Postby cday » Thu Apr 27, 2017 12:00 pm

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


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest