How to overwrite embedded JPG preview image?

I would like the built-in preview image to match my final version of the developed RAW file. Which tool can I use to replace an embedded JPG preview image written by a camera? Is it possible in darktable?

exiv2 and exiftool can delete and insert the thumbnail. I’d avoid modifying raw files, though.

2 Likes

Very much this.

Also don’t most raw editors show you the edited in their file browser after editing? Why the need to put it in the raw? How do you handle multiple versions of an edit?

1 Like

I thought it would be nice to see developed version in other tools, like image or file explorers. However, it was more a question out of curiosity than an actual need. I wasn’t even sure if it was possible – now I know it is.

I’m on the cellphone, so I cant check if we can do this already. An option could be for dt to export a dng file. The dng would have your raw data. the new embedded jpg and metadata (xmp) all in a single file. The original raw remains intact. There are some issues with this approach, mainly the extra hard disk space.