CBlog(handziuk)

Bradley Handziuk's blog

Converting raw (ORF) photos to something else (jpg/png)

Last time I needed to convert a bunch of raw pictures from a friend's camera to something more usable I used a program called UFRaw. It was an easy command line tool to quickly convert them all. Well sort of quickly. Once I got the command I needed nailed out I let it chug on a couple hundred pictures, it might have taken 15 minutes or so. Not terrible. The command was something like
cd "C:\Program Files (x86)\UFRaw\bin"
ufraw-batch.exe "..directory with my pictures\Raw\*.ORF"  --out-type=jpeg --size=2000
But now I have another problem. The lens that took these raw pictures this time was a different lens and, for whatever reason, embedded some information about itself into the ORF file indicating it was a panoramic lens.

When I open up the raw picture in the UFRaw GUI and save out an ID file (a .ufraw extension) there is a part in there that looks like this:
<Distortion Index='PanoTools lens model'>
  <Model Label='PanoTools lens model'>
	<a>-0.005000</a>
	<b>-0.016000</b>
	<c>-0.014000</c>
  </Model>
</Distortion>
When I change, The settings in the GUI I can save the file to be normal looking.

And this makes a normal looking picture


And the configuration for that looks like
<Distortion Index='None'>
    <Model Label='PanoTools lens model'>
    <a>-0.005000</a>
    <b>-0.016000</b>
    <c>-0.014000</c>
  </Model>
</Distortion>
Super. Looks great. It looks like one of the commands for using the command line ufraw-batch.exe is
--conf=<ID-filename>. I made my ID file, fed it into my existing command, and nothing happened. It didn't work. What a I doing wrong?

I tried all sorts of different configurations of that config file. Supplying the ID file to the command line differently. Nothing worked. Then I see this
The lensfun parameters are not written to UFRaw ID files. This means that if you create an ID file and use it to convert a batch of photos, no lensfun corrections will be applied.
That's valid for UFRaw 0.15 and I'm using 0.19.2 but the page hasn't been updated (accessed July 27, 2014) and it's not working so I assume it up to date (?). And the lenfun.dll was installed with my UFRaw install. The dll is form Feb 19, 2011 though. I have not looke dup if there is a newer version.

If I were the camera owner I think I could use the official Olympus software for this but the download page required you to enter a serial number which I do not have.

Picasa reluctantly to the rescue

Picasa has the ability to convert raw pictures to JPEG and this is ultimately what I used. It is very simplified and certainly not for doing any sort of actual image processing. If you want to do anything special with your picturess you probably have other software anyway but this route will crank through a bunch of conversions of ORF to jpeg and will do a simple resize. But, for whatever reason Picasa does not read the information from the lense in the same way and has no distortion when reading the pictures. Maybe because it is so much less capable it just doesn't even try? I don't know.

All you have to do is bring all the images into an album. I did this by ctrl+A'ing the pictures I wanted to convert in Windows Explorer and dragging them into a new Picasa album. Then you need to select all of the pictures you brought in and go File > Export to Folder. I chose to export all my pictures at 2200 max width.

I'm disappointed in UFRaw not being able to handle this yet (really their lensfun plugin) but happy something free can do it.
Loading