Black lines on RAF files

Hi there,
I am struggling with some of my RAF files (i have a Fujifilm X-T20) having black lines when opening them with darktable. It doesn’t happens with all files, it seems to be quite random. Also, those black lines are not always at the same position. The lines appear when i open the image with Darkroom, and when i export the file to JPEG format.

I don’t have this problem with the JPEG files created by my camera. I tried to export some of these “black-lined” RAF files on a friend’s laptop with Lightroom and it went fine, so i think the issue comes from Darktable.

I’m running Darktable on Ubuntu 24 (but had the same problem already with Ubuntu 22).

I’ve looked around the Internet but didn’t see anything like this. And i’m quite new to the software so maybe i missed something important !

The image is a screenshot of one of these files in Darkroom. The corresponding RAF file is also provided.


DSCF5429.zip (37.9 MB)

I also get them. Not just in DT, but also in RT and ART, so it definitely has something to do with the file.

Welcome to the forum.

I shoot with a X-T20, and have never seen anything like this with any photo. With yours, I do not see the lines when I open your file with Geeqie, but I do see the lines when I open it with darktable, both before and after making some edits, and a jpeg export of the edit also shows the lines.

Are your camera body and lens up to date on firmware? This isn’t based on any knowledge of such a problem, just thinking of how something could be off the rails in the file recorded by the camera.

I opened it with Lightroom and same issue: 2 black lines across the image. Either the camera or the SD card, me think.

I opened with ON 1 Photo RAW; in the “raw” editor I also see the black lines. windows Photos also showed them

Opening the file in a hex editor, there are two big chunks with nothing but zeroes. Clearly the file wasn’t written correctly. As @dtrtuser says, it’s either the camera or the SD card that’s faulty.

1 Like

It would be worth downloading all the files off your SD card and then doing a full format of the card in the camera. This can’t hurt but it can reduce fragmentation when files are written to your card. I use this method rather than the delete all option an all my cameras.

3 Likes

Geeqie does not process the raw data, it uses the embedded JPG preview to show the image.

1 Like

Yeah, my mistake, I have this set in preferences:
image

That’s not a mistake. You simply asked darktable to use the raw file everywhere. I have that set, too. Since you see the raw, even when looking at thumbnails on the lighttable, you also see the corruption in the raw files.

I haven’t gotten into the coffee yet today, but I believe that setting in preferences indicates “never use raw file instead of embedded JPEG” when generating thumbnails for images that have not yet been processed in the darkroom. I think it is “always” that asks dt to use the raw file everywhere.

1 Like

That sounds logical…

Is it possible that the .RAF file has multiple embedded JPEGs, and Geeqie and darktable are using different ones? Unfortunately, I don’t know how to check that.

Analyzing the output of
exiftool -H -G1 -a /path/to/filename.ext
should give the answer.

There’s the (not full-res) preview and the tiny thumbnail. That’s it. Neither of which has the black lines, btw.

Even in Fuji Films’ free raw processor RAW FILE CONVERTER EX, the image has 2 black lines. Apparently this file is broken. May be SD problem?

I probably had too much coffee…

1 Like

As I pointed out further up, there are two big chunks “missing” (aka. nothing but zeroes) in the file, so most definitely broken.

This has nothing to do with fragmentation, which will never lead to corruption, but only degraded read/write performance (and even then that’s mostly an issue with spinning disk drives).

2 Likes

Hi,
thanks for all your answers :slight_smile: I’m trying to update camera and lense software update, as well as reformatting my SD card and see if it’s work. [Update : it doesn’t]

My memory card is a micro-SD, do you think that may cause trouble ?
Thanks again !

How about trying with another card?

1 Like