NConvert, RAW -> JPEG wrong color

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

Moderators: helmut, XnTriq, xnview

Post Reply
morgantar
Posts: 1
Joined: Wed Apr 13, 2011 9:30 am

NConvert, RAW -> JPEG wrong color

Post by morgantar »

Hi!
I'm using nconvert under OSX to convert my raw files to jpeg. I use this code:

Code: Select all

/Users/dan/Desktop/nconvert -out jpeg /Users/dan/Pictures/Nikon/138\ -\ london\ 2011/DSC_3160.NEF  
The output files have a strange color profile, images look more sepia. How i can solve it?
Thank you!
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert, RAW -> JPEG wrong color

Post by xnview »

Is it possible to post your file?
Pierre.
rogerdahl
Posts: 8
Joined: Sun Sep 21, 2008 10:22 pm

Re: NConvert, RAW -> JPEG wrong color

Post by rogerdahl »

I have this same problem, using NConvert 6.01.

When I open a RAW (NEF) file in XNView, the colors are very different from when I convert the same RAW file to JPG using NConvert and view the resulting JPG in XNView.

The command line I used was:

nconvert -out "jpeg" -q 90 -high_res -o DSC_3945.JPG DSC_3945.NEF

Here are two example files.

http://dl.dropbox.com/u/38272118/DSC_3945.JPG
http://dl.dropbox.com/u/38272118/DSC_3945.NEF
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert, RAW -> JPEG wrong color

Post by xnview »

could you post the result that you have with XnView??
Pierre.
rogerdahl
Posts: 8
Joined: Sun Sep 21, 2008 10:22 pm

Re: NConvert, RAW -> JPEG wrong color

Post by rogerdahl »

I'm using Windows 7.

Here's a screenshot of viewing the NEF in XnView:

http://www.dahlsys.com/upload/1937f170- ... c00008.png

And here's a screenshot of viewing the JPG:

http://www.dahlsys.com/upload/03f04aa1- ... c00008.png

The difference also shows in thumbnail view:

http://www.dahlsys.com/upload/414dac2e- ... c00008.png
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert, RAW -> JPEG wrong color

Post by xnview »

And the good one is the nef viewed in XnView or the jpeg?
Pierre.
rogerdahl
Posts: 8
Joined: Sun Sep 21, 2008 10:22 pm

Re: NConvert, RAW -> JPEG wrong color

Post by rogerdahl »

The NEF is the good one.

XnView displays NEF with the same colors as Photoshop does when converting with the NEF importer at all default settings (White Balance: As Shot).

http://rd.gnus.org/upload/DSC_3945.NEF% ... toshop.png

So the problem appears to be in the defaults, white balance or color profile that NConvert uses when it reads NEF.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert, RAW -> JPEG wrong color

Post by xnview »

Ok, please try

Code: Select all

-raw_autobright -raw_autobalance
Pierre.
rogerdahl
Posts: 8
Joined: Sun Sep 21, 2008 10:22 pm

Re: NConvert, RAW -> JPEG wrong color

Post by rogerdahl »

I really appreciate the help, and thank you for XnView -- it's awesome.

Using -raw_autobright -raw_autobalance makes a huge difference. The converted JPEG now looks almost exactly like the NEF (when displaying both in XnView). The JPEG is just very slightly more blue than the NEF. The difference on this image is so small that it doesn't matter to me, but the "auto" settings seem to indicate that the brightness and balance is no longer deterministic, but based on an analysis of the photo? If so, is there a switch that I can use to get a "standard' conversion that matches what XnView does? (Assuming that XnView does not do the equivalent of -raw_autobright -raw_autobalance).
Post Reply