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.
Fichier original https://framadrop.org/r/6skE8vWJpD#AMt6 ... LLrrjG/CU=
[Solved] Wrong colors in image - CMYK/ICC
Moderators: XnTriq, helmut, xnview
-
- Posts: 228
- Joined: Wed Nov 24, 2004 8:53 pm
[Solved] Wrong colors in image - CMYK/ICC
You do not have the required permissions to view the files attached to this post.
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: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: not the right colors
Your image is CMYK, are you including theses switches in your code?
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).
Code: Select all
-ctype cmyk : Channel Type (Raw)
-cmyk_space : Convert if possible in CMYK space
(Edited).
-
- Posts: 228
- Joined: Wed Nov 24, 2004 8:53 pm
Re: not the right colors
Thanks for quick answer. I will take a look.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
-
- Posts: 228
- Joined: Wed Nov 24, 2004 8:53 pm
Re: not the right colors
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: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: not the right colors
In addition to using one of the CMYK switches, or was it not necessary to include either?lian wrote:I had to add to get the exact colors and keep ICC profile:
Code: Select all
-keep_icc -icc
Could you post an example command line that works, which might help someone else in the future?
-
- Posts: 228
- Joined: Wed Nov 24, 2004 8:53 pm
Re: [Solved] Wrong colors in image - CMYK/ICC
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: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: [Solved] Wrong colors in image - CMYK/ICC
Thank you for posting your example.
I wonder if the -ctype cmyk : Channel Type (Raw) switch is needed for a JPEG input, but it works anyway...
I wonder if the -ctype cmyk : Channel Type (Raw) switch is needed for a JPEG input, but it works anyway...