1. User guide
  2. Output

Metadata and XMP

Chapter 15 of 19 9 min read3 screenshots

Chapters15 of 19
On this page10 sections
  1. The Metadata panel
  2. What comes in when you import
  3. Automatically write changes into XMP
  4. Where the XMP goes
  5. What is written
  6. What is never written
  7. What's kept from the file
  8. Files changed outside the app get a "!"
  9. Save Metadata to File and Overwrite Metadata in File
  10. Going back to Lightroom

NightScape Lab keeps your ratings, labels, captions and Process settings in its own catalog. It also writes them into XMP, the format Lightroom reads, so a photo you rate or adjust here shows up in Lightroom the way you left it. If you go back and forth between the two apps, read this page closely. It says what gets written, where it goes, what comes in when you import, and when the app leaves a file alone.

Shortcuts on this page are written the Mac way, with the Windows and Linux key in brackets.

The Metadata panel

The Metadata panel is in the right panel in Frames, under the Histogram.

Metadata panel in Frames with title, caption, and keyword fields.

The top four fields are the ones you can edit:

FieldWhat it holds
TitleA one-line title
CaptionA longer description, two lines tall
CreatorYour name
CopyrightYour copyright line

Whatever you type goes onto every selected photo. If the selected photos have different values, the field shows <mixed> until you type something. Press Return in a one-line field, or click away, to commit it. If you change the selection while you're still typing, what you typed lands on the photos you were typing for.

Below those, the panel shows details you can read but can't edit here:

RowWhat it shows
File NameThe file's name
Copy NameA virtual copy's name (only on a virtual copy)
FolderThe folder it's in
FrameLight frame, Dark frame, or NightScape base image
PartForeground or Sky, when you've given the photo a Merge Role
CapturedWhen the photo was taken
DimensionsWidth × height in pixels
Exposure, ISO, Aperture, Focal LengthFrom the camera
Camera, LensFrom the camera
RatingThe photo's stars
FlagPicked, Rejected or Unflagged
LabelThe color label, or a dash when there's none

Rating, flag and label are set with the keys and menus in Frames (see Keyboard Shortcuts), so they're listed here for reference only.

There's no keyword panel in this version. Keywording belongs in Lightroom, which is where the finished photo ends up. Keywords a photo already carries aren't lost, though. More on that below.

What comes in when you import

When a photo comes into the catalog, the app reads the XMP it already has. That's the .xmp sidecar beside a RAW, or the XMP inside a JPEG, TIFF or DNG. It brings across:

  • The star rating
  • Rejected, when Lightroom marked the photo as rejected in the file
  • The color label, when it's one of Red, Yellow, Green, Blue or Purple
  • The title and caption
  • The keywords, which are kept with the photo even though this version has no panel for them

Creator and copyright aren't read. Type those in the Metadata panel if you want them.

Reading doesn't write anything. A photo that only has what its own file already said isn't written back until you change it.

Photos you've already edited in Lightroom

If a photo has Lightroom edits in its XMP, the app picks them up the first time the photo is prepared for Process:

  • The Develop settings you changed in Lightroom, with Lightroom's white balance as the app can hold it
  • The crop and straighten angle
  • The lens profile correction (its Distortion and Vignetting amounts), when it was on

These land as one History step called From Lightroom, so you can step back past it in Process if you'd rather start fresh.

Some of those Lightroom settings belong to panels this version of the app doesn't show (the tone curve, color grading and so on). They still apply to the photo and still travel back out in the XMP. You just can't change them here.

Automatically write changes into XMP

This setting is in Edit > Preferences…, under Metadata, and it's on unless you turn it off. See Preferences, License and Help.

Preferences, with Automatically write changes into XMP under Metadata

When it's on, the app writes a photo's XMP shortly after a change settles, a few files at a time in the background. You don't need to save anything.

A few details about timing:

  • Importing writes no files. A photo gets XMP only once it has something to say: a title or caption, a rating or label, a rotation, or changes in Process.
  • If you turn the setting on after working with it off, the app catches up on photos changed in the meantime. The same catch-up runs when the app starts. RAW sidecars and the app's own base images are written then. An original JPEG, TIFF or DNG that the app has never written into is left until you change that photo again, or until you use Save Metadata to File. That way, switching the setting on doesn't suddenly rewrite a pile of your original files.
  • A write that fails, or finds a file changed outside the app, isn't tried again until you change that photo.

When it's off, nothing is written unless you ask with Save Metadata to File.

Where the XMP goes

File typeWhere the XMP is written
RAW (every RAW except DNG)A .xmp sidecar beside the RAW, with the same name: DSC0001.ARW gets DSC0001.xmp
JPEGInside the file
TIFF and DNGInside the file
The app's own base imagesInside the base image TIFF: a stack's -Stack.tif beside its first light frame, or the panorama, star trails or merge file in the catalog's Renders folder
PNGNothing. It's skipped with the reason "PNG isn't supported yet"

Every write is built in a temporary file beside the target and then renamed into place, so a write that fails partway leaves your file as it was.

Some files are skipped, each with a reason:

  • A JPEG with Extended XMP. "The JPEG has Extended XMP, which isn't supported yet, so nothing was written."
  • A file with more than one hard link. "The file has more than one hard link, so writing it would change the other names too."
  • A file whose existing XMP can't be read. "The XMP already in this file can't be read, so it wasn't overwritten." A fresh packet would throw away whatever was there.
  • A virtual copy. A virtual copy keeps its settings in NightScape Lab, and the file's XMP belongs to the original.

A BigTIFF counts as a failure, with "BigTIFF isn't supported for XMP yet".

When the app writes on its own, a skipped file is noted in the log (Help > Show Log…). When you ask with Save Metadata to File, the reason shows in the activity area at the top of the window.

What is written

  • Title, Caption, Creator and Copyright
  • Rating and color label
  • Keywords the photo already has (from its file when it was imported, or from an older version of the app)
  • The orientation, when you've rotated the photo here
  • For a photo you've opened in Process, its settings there, using Lightroom's own setting names and number formatting: white balance, the Basic sliders, the crop and straighten angle, and the rest of what the photo carries

A panel you've switched off in Process is written at its default values, because that's what the photo looks like.

What is never written

  • Pick and Reject flags. Lightroom keeps flags in its catalog only, so there's nowhere in XMP to put them.
  • The NightScape tool results (Stars, Round Stars, Denoise, Defringe & SCNR). They're new pixels in the app's TIFF, and a RAW's sidecar can't hold pixels.
  • The Sky / Ground adjustment.
  • The Star Map.
  • White balance other than As Shot on a JPEG, TIFF or base image. Lightroom stores those as relative adjustments, and the app has no equivalent.

Apart from flags, Lightroom has no XMP setting for any of these, which is why they stay in NightScape Lab. If you want the built picture itself in Lightroom, pixels and all, export it or use Edit In. See Edit In, Export and Lightroom.

What's kept from the file

Before writing, the app reads the XMP already in the file and carries over everything it doesn't write itself. That includes Lightroom's own masks and lens profile settings, and anything another program put there.

The catalog decides what the app writes. If you clear a label or a caption here, it's cleared in the file too, but only where the app wrote it. A title that a camera or another program put in the file stays until you give the photo a title of your own. A rating in the file that the app didn't write is left alone while the photo has no stars here.

For a JPEG, TIFF or DNG that already has XMP the app never wrote (from the camera or another program), the app merges into it and replaces only the properties it writes.

Files changed outside the app get a "!"

Once the app has written a file's XMP, it remembers exactly what it wrote. If something else changes that XMP afterwards (Lightroom saving metadata to the file, for example), the app leaves the file alone and marks the photo with an orange ! in the corner of its thumbnail, in the grid and the filmstrip. Hover over it to see why:

The file's XMP was changed outside NightScape Lab, so it isn't written. Metadata > Overwrite Metadata in File replaces it.

The same thing happens when a RAW already has a .xmp sidecar that the app didn't write, such as one Lightroom made before you imported the photo. The app reads that sidecar on import, and it won't write over it on its own.

The app checks a marked photo again the next time you change it. If the file holds what the app wrote once more, the mark goes away and writing carries on as normal.

Skipping the file is safer than overwriting work you did in Lightroom, so that's the default. When you do want this app's version in the file, use Overwrite Metadata in File.

Save Metadata to File and Overwrite Metadata in File

Both are in the Metadata menu and work on the selected photos. They're greyed out when nothing is selected, and they work whether or not automatic writing is on.

The Metadata menu
CommandShortcutWhat it does
Save Metadata to FileCmd+S (Ctrl+S)Writes the selected photos' XMP now. A file changed outside the app is left alone.
Overwrite Metadata in FilenoneWrites the selected photos' XMP even over a file changed outside the app. What the app doesn't write (Lightroom's masks, lens profile and other programs' data) is still kept.

Those two are the whole Metadata menu.

When the save finishes, the activity area says what happened, for example:

Saved metadata to 3 files; 1 file changed outside NightScape Lab and left alone (Metadata > Overwrite Metadata in File replaces it)

Skipped and failed files are counted too, with the first one's reason. If nothing could be written, it says "No metadata was written". The full lines are in Help > Show Log….

Going back to Lightroom

XMP carries the settings and the metadata. It doesn't carry the picture NightScape Lab built. For that you have three routes, all covered in Edit In, Export and Lightroom:

  • Export a DNG, a layered PSD or a TIFF.
  • Edit In sends the photo to Photoshop (or the app you chose) as a PSD, TIFF or DNG.
  • Save to Lightroom, for a stack or star trails you started from the Lightroom Classic plugin, writes the result beside its frames, and the plugin adds it to your Lightroom catalog.