Feature request: Fujifilm HDR RAF support

I have some files from XT5 (XT4 has same option) in HDR drive mode.

When I tried to develop them I discovered that you only can see the first image taken.

HDR drive mode works taking 3 exposure bracketed images and combining them to generate a jpeg, and all tree images are saved in the same RAF file.

But developers only see the first image, so you need to combine them in an HDR file.

HDRMERGE seemes the ideal program for the task.

In the web page HDRMerge It says that HDRmerge can work with single files that contains multiple exposure image frames like FUJI EXR.

But I tried to use it with my HDR RAF and it only sees the first image, so it is not compatible with this file format.

IT seems that HDR RAF files just contain the three image tiles one after the other and it is not difficult to separate them.

There is a developer (greybeard in fuji forums) that has made a tool to extract all 3 images to raw files.
https://www.fujix-forum.com/threads/x-t4-hdr-mode-how-to-use-all-three-exposure-data-in-raw.105799/

This web can extract all three images too.
https://www.solentsystems.com/hdrextract/

But it would be more convenient if hdrmerge can do that by itself just from the single raf file.

3 Likes

I would also love to have that feature. Maybe as a first step, a separate command line tool for extracting the three exposures would be great (then one could already combine that with hdrmerge or also other tools in some wrapper script).
I actually wanted to go through the linked forum thread for a long time, to see if it contains the necessary information to implement something (the web app is nice to have but a cli tool would be much better in my opinion). Unfortunately I currently don’t have the time for it between work and raising a little child. But if anyone already looked into it, I’d be happy to know.

1 Like

Is there any documentation available on the HDR RAF format? Does anything else that is FOSS support it?

Not that I am aware of. All I found when searching some time ago, was the online tool and corresponding forum discussion (which I now finally read) that are already linked above. The person who developed it was already asked if he could provide a offline script and seemed to be willing to do so, but seems it didn’t happen so far. Might be worth asking again.

Also, the online tool apparently does everything locally, so looking at the source of the web page might give some insight (I 'm currently on the phone, where there doesn’t seem to be an option to view the source. Will check the next time I’m sitting at my PC).

To get support for HDR merge, libRaw needs to support it, and I can’t tell if it does.

Sorry, no idea.

All I know is that taking the word of the guy in that forum who has written a program that splits the raf in other three rafs, it is easy to implement as the file seems to just contain the header and then all three raw data format one after another.

May be he can help in porting the code to libRAW and HDRmerge.

Yes the tool makes all the processing (exif extraction an binary data extraction) locally using plain javascript.
The code can be accessed and is readable (it is not ofuscated).