Forgot Password
Pentax Camera Forums Home

Show Printable Version Search this Thread
10-20-2008, 07:28 AM   #1
Inactive Account

Join Date: Oct 2008
Posts: 3
Ufraw tone curves again

I'm presently stuck to what linux has to offer for post-processing, and ufraw seems to be he most convenient program of the free offerings. But it's frustrating trying to get nearly similar tone curves as the camera (K10D) produces (edit: at its default settings), as a starting point and a safe generic processing choice for shooting RAW only.

The best I've managed is using the K10D .icm colour profile from Phase One with gamma=0.45 and linearity=0.05, as suggested on the ufraw colour management page, and then some S-like base curve. But no matter how I adjust the curve, I haven't managed to get greens that I'd like. Things like grass turn out too yellow in comparison to the camera-produced thumbnail jpeg. I've also tried small adjustments to white balance, contrast, saturation, but it doesn't seem to help.

Any suggestions? Configs? Has anyone managed to configure ufraw the produce something comparable to the camera-produced jpeg?

Last edited by evvk; 10-20-2008 at 07:53 AM.
10-20-2008, 08:25 AM   #2
Veteran Member
YJD's Avatar

Join Date: May 2008
Location: Monte Vista, CO
Posts: 529
It might not answer your question, but have you tried Raw Studio?
Personally I haven't since it doesn't work under Windows, but I'm using Bibble which works under Linux too.
10-20-2008, 08:59 AM   #3
Inactive Account

Join Date: Oct 2008
Posts: 3
Original Poster
I tried rawstudio, but it isn't quite there yet. I found it rather confusing to use: click in the wrong place, and it forgets all the careful tuning you've done to an image. Also the white balance setup is just too primitive (no presets, no Kelvin, no nothing.. so you have to have had the right settings in the camera, or entirely visually choose it with a slider with unknown units). I don't think it either provides the tone curves.

I've also tried the following programs, and I don't think any of them actually easily provide the settings for camera-like output.

- digikam: the older versions (0.8x as provided on etch) weren't good, and newer ones (0.9) just crash on exif read. I also don't like how "imposing" it is in trying to manage all your stuff.

- RawTherapee (which demanded a lot of effort to get running on etch): confusing/cluttered with too much controls stuffed in one place, and I'm not generally fan of the UI. (rawstudio is confusing in a different way: it isn't too cluttered, it looks quite friendly unlike rawtherapee, but it has some UI "bugs", I'd say.)

- BibblePro demo: pretty much the same as rawtherapee.

I've found gqview to be the best image viewer and program for organising your stuff together with command line tools (although tagging could be even better, more keyboard-friendly), and it works best together with ufraw for raw conversion (you can bind a key to launch ufraw on an image).
10-22-2008, 12:08 PM   #4
Junior Member

Join Date: Oct 2008
Location: Brno, CZ
Posts: 30
Stupid question...

I know it may sounds stupid, but just for test, try to shoot the same scene, 1rst in RAW (convert it with ufraw) and 2nd in JPEG format (the one`s that you consider are the target green) and attach them to the thread, maybe someone with experience (using ufraw/dcraw) can help.

I am very satisfied with ufraw (both windows and linux versions, using k20d).
If you want check out my Flickr link in my signature. I should have some combination of greens there :-) .

10-23-2008, 12:24 PM   #5
Inactive Account

Join Date: Oct 2008
Posts: 3
Original Poster
It seems that attempting to find an ICM profile, as instructed in the documentation, was a wasteful effort. None of them map the colours correctly, at least not without some additional mangling by the software. E.g. Capture 4 from which I got their K10D profile, actually seems to have different white balance settings. At least it shows different Kelvin temperatures from ufraw. So the profile just won't work without yet more setup.

But it seems that the 'color matrix' option actually does get the colours/white balance pretty much right. By playing with gamma/linearity and the base curve, the brightness/luminance from the camera can be approximated to some extent. I settled for the default 0.45/0.10 and some mid-tone boosting as my default setup. (Something like 0.35/0.07 and linear base curve is also a rather close match.) It still isn't quite the result from the camera, but close enough. Probably all the sharpening parameters etc. also play a role, and ufraw doesn't provide that.
10-23-2008, 12:52 PM   #6
Site Supporter
Site Supporter
smigol's Avatar

Join Date: Sep 2008
Location: Menlo Park, CA
Photos: Albums
Posts: 421
I wanted to express my thanks for this discussion of UFRaw settings. I've been playing with this software for a few months and it's through these threads here and in other places where I've learned a few things what I can do.
10-27-2008, 12:08 AM   #7
newmikey's Avatar

Join Date: May 2007
Posts: 1,757
Have a go with the Pentax3.icm profile that comes with Bibble. You can install a free trial and use the profiles in UFRaw.

It gets me pretty close to the embedded JPEG on my K100D-Super. Also, do not forget to keep evaluating whether the embedded jpeg is any good at all! I spent a lot of time finetuning just to arrive at the conclusion that UFRaw provided a truer image of reality than the builtin JPEGs of Pentax. The greens tend to be overdone and the yellows almost scream at you.

UFRaw (through my KDE servicemenu hack) now does all of my RAW conversions batched. (see ufrb-kde
11-12-2008, 05:33 AM   #8
newmikey's Avatar

Join Date: May 2007
Posts: 1,757
Just saw this discussion

I have been playing around a bit and here are my results. Below you can find my settings, including the anchor points for the curves I used. The profile for my camera is the one specific for the K100D Super that comes with Phase One.

The embedded JPEG:

The UFRAW converted JPEG:

The *.UFRAW file for this conversion:
<?xml version="1.0" encoding="utf-8"?>
<UFRaw Version='7'>
<ChannelMultipliers>1.562500 1.000000 1.132813</ChannelMultipliers>
<BaseManualCurve Current='yes'>
<AnchorXY>0.003494 0.000000</AnchorXY>
<AnchorXY>0.270588 0.387435</AnchorXY>
<AnchorXY>0.439216 0.554974</AnchorXY>
<AnchorXY>0.726961 0.790576</AnchorXY>
<AnchorXY>1.000000 1.000000</AnchorXY>
<LinearCurve Current='yes'>
<AnchorXY>0.006561 0.000000</AnchorXY>
<AnchorXY>1.000000 1.000000</AnchorXY>
<InputProfile Current='yes'>PentaxK100DSuper-Generic
<File>/mnt/win_e/Program Files/Phase One/Capture One 4/Color Profiles/dslr/PentaxK100DSuper-Generic.icm</File>
<sRGBOutputProfile Current='yes'>sRGB
<Model>K100D Super</Model>
<Timestamp>Sun Nov 2 19:08:57 2008</Timestamp>
<Shutter>1/90 s</Shutter>
<FocalLength>75.0 mm</FocalLength>
<FocalLength35>112.0 mm</FocalLength35>
<EXIFSource>exiv2 0.15</EXIFSource>
<Crop>0 0 3040 2024</Crop>
ufraw_open: w:3040 h:2024 curvesize:0
EXIF data read using exiv2, buflen 64520

Loading PENTAX K100D Super image from /mnt/win_e/k100d-s/110_1102/imgp5683.pef ...
Black: 127, Maximum: 4095
Scaling with black 127, multipliers 1,000000 0,640000 0,725000 0,640000
Bilinear interpolation...
VNG interpolation...

The commandline for conversion:
ufraw-batch $idfile --wb=camera --wavelet-denoising-threshold=80 --create-id=no --out-type=png --out-depth=16 --interpolation=vng $FILE

binomial -t high -m 75 -w 5 $FILE_NO_EXT.png $FILE_NO_EXT.$FORMAT

Binomial is one of Fred's edge sharpening script to be found Fred's ImageMagick Scripts: BINOMIAL


  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
colour, curve, curves, jpeg, k10d, photography, photoshop, tone, ufraw
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
UFraw update newmikey Digital Processing, Software, and Printing 1 09-03-2010 07:45 AM
Underexposure in UFRaw/GIMP? Spazmatazz Digital Processing, Software, and Printing 18 08-31-2010 12:56 AM
ufraw Settings for K7 GoremanX Digital Processing, Software, and Printing 7 12-10-2009 02:23 PM
UFRAW Settings for k10d cyclocross Digital Processing, Software, and Printing 0 02-12-2009 08:56 PM
Ufraw cyclocross Digital Processing, Software, and Printing 2 05-23-2008 12:11 PM

All times are GMT -7. The time now is 01:28 PM. | See also:, part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]