Old .orf File Help libraw

My Olympus SP510UZ has support in libraw for it’s orf file, but I don’t know how to get that working in darktable.

Win10, version Latest windows release.

File attached under CC0
P1010020.ORF (10.2 MB)

For me this camera seems currently to be unsupported : camera support | darktable

libraw is just used for canons cr3 and x3f. You might alter that in a custom build but that might have side effects
get inspiration from [imageio] Only libraw can support x3f by victoryforce · Pull Request #18500 · darktable-org/darktable · GitHub

the usual way to get camera support is described here: Camera support · darktable-org/darktable Wiki · GitHub

Why curious about the fact it supported on LibRaw, and folks used that library for other weird old camera formats through that, so maybe the answer is no, and I need to upload samples instead and see if it can be supported directly instead of some work around??

by default darktable uses rawspeed, not libraw. libraw is just used because there’s no cr3 or x3f support in rawspeed. No support for all recent canon cameras isn’t an option for darktable :wink:
since orf is generally supported by darktable don’t expect the path via libraw in the official codebase …

Very interesting. That is fascinating that I misunderstood the whole LibRaw thing on the camera support page, shame there is no sort of easy pull from LibRaw for some old early Olympus orf raw file.

Hi

A simple way to get it working with darktable is to convert it to DNG with the free Adobe DNG Converter.
The resulting file will open in darktable without a problem.

Best regards,

1 Like

Sure, it’s not the god tier 11/10 supported raw, but damn this is annoyingly simple and quite decent solution, thank you so much internet stranger, 10/10

You are welcome.

Open the file C:\Users\<username>\AppData\Local\darktable\darktablerc in the editor, find the line libraw_extensions= and add orf there. If before that the raw file from this camera was already imported unsuccessfully, you need to remove it from the database and import it again (with the libraw loader).

Another method that has already been suggested here is converting a raw file to DNG using Adobe DNG Converter. This is a guaranteed way to work in darktable with cameras that are not yet supported in both rawspeed and libraw. The downside is that you create additional files that take up space.

Another option is to add the description of the new camera to the file C:\Program Files\darktable\share\darktable\rawspeed\cameras.xml.

Run your favorite editor as administrator, open the above file and add the following fragment anywhere in the list of camera descriptions:

	<Camera make="OLYMPUS IMAGING CORP." model="SP510UZ">
		<ID make="Olympus" model="SP510UZ">Olympus SP510UZ</ID>
		<Crop x="0" y="0" width="3088" height="2309"/>
		<Sensor black="0" white="4095"/>
		<ColorMatrices>
			<ColorMatrix planes="3">
				<ColorMatrixRow plane="0">10594 -3607 -1010</ColorMatrixRow>
				<ColorMatrixRow plane="1">-5881 13127 3083</ColorMatrixRow>
				<ColorMatrixRow plane="2">-1200 1804 6720</ColorMatrixRow>
			</ColorMatrix>
		</ColorMatrices>
	</Camera>
2 Likes

It’s currently not possible to upload new samples. But if the sample in OP is good enough, @kmilos should know what to do with it.

Already done: Olympus SP-510 UZ support by victoryforce · Pull Request #796 · darktable-org/rawspeed · GitHub

1 Like

Well that worked well, but surprisingly required fair bit of deletion and resting to make it work… but got it done.

Thank you

Good to hear! It would still be nice to track this “formally” via a new camera support request on GitHub. As RPU is currently not accepting uploads, just leave a link to raw samples in the request and mention the license.

Hello. RPU is finally up. Please contribute the full sample set for this camera.

3 Likes