#1750·RapidRAW

BUG: TIFF exports and all conversion outputs contain no metadata

Author: FabianWeiss90Created Sep 20, 2026Updated Sep 29, 2026
Labelsbug

What happened?

Exported TIFF files contain no metadata at all — no Make/Model, no aperture, no exposure time, no ISO, no focal length, no GPS. exiftool on an exported TIFF shows only the structural tags written by the encoder.

JPEG, PNG and WebP exports are fine, since those got full EXIF preservation in v1.6.2/v1.6.4. TIFF is skipped on purpose in exif_processing.rs:

rust
// FIXME: temporary solution until I find a way to write metadata to TIFF
if !keep_metadata || output_format.to_lowercase() == "tiff" {
    return Ok(());
}

The same problem exists outside the export path, and I think it is really the same issue: denoising, negative conversion, panorama stitching, HDR merging and focus stacking all save their result with image::save(), which writes no metadata either. They do write a RapidRAW sidecar next to the file, so the metadata panel inside RapidRAW shows values — but any other program (Lightroom, darktable, GIMP, exiftool, the file manager) sees nothing. Denoised TIFFs are hit twice: the file has no metadata, and re-exporting it produces a file without metadata as well, because a second guard skips metadata whenever the source file is a TIFF.

What did you expect to happen?

A TIFF export should carry the same metadata a JPEG export carries: camera, lens, aperture, exposure time, ISO, focal length, capture date, and GPS unless "strip GPS" is enabled. Files produced by the conversions should carry the metadata of the image they were derived from — the same data that already goes into their sidecar.

How can we reproduce this?

  1. Open a RAW file with rich EXIF (camera, lens, aperture, ISO)
  2. Export it as TIFF, 8-bit or 16-bit, with "keep metadata" enabled
  3. Run exiftool export.tiff — no camera, lens or exposure data is present

For the conversions:

  1. Run Denoise on a RAW file, which writes <name>_Denoised.tiff
  2. Run exiftool <name>_Denoised.tiff — again nothing
  3. Export that denoised file as JPEG — the export has no metadata either

Operating System

Other Linux

RapidRAW Version

v1.6.4

Additional information

OS: Fedora 44

The cause of the FIXME looks structural rather than accidental, and worth writing down in case someone else runs into it: the export path encodes the finished image first and then patches metadata into those bytes with little_exif. For JPEG/PNG/WebP that is safe, because EXIF sits in an independent segment or chunk. For TIFF it is not — pixel data is addressed through absolute StripOffsets stored inside the IFD, so inserting entries into a finished file shifts the pixel data away from the offsets that point at it and corrupts the image. Skipping TIFF was the right call over shipping a broken writer.

Writing the tags during encoding avoids the problem entirely, because the encoder computes strip offsets once, after all tags are known. I have a working implementation of that and will open a PR soon after.

Acknowledgement

  • I have verified that my camera and lenses are supported by the external libraries listed above, or my issue is unrelated to camera/lens support.
  • I have searched all existing issues, both open and closed, and did not find a duplicate.