Work-folder originals must carry picks, stars and IPTC for Lightroom #262

Closed
opened 2026-11-14 16:19:59 +00:00 by spark · 4 comments
Owner

Problem

Importing today’s work-folder JPEGs (Desktop/2026/20261114 - Águas Santas…) into Lightroom shows none of the PhotoReport work: no picks, no IPTC caption/title/city, no develop soft crop.

Checked on disk (ExifTool): 124 JPG, 0 with photoreport:embed, 0 with xmpDM:Pick, 0 IPTC captions. Only the camera’s <xmp:Rating>0</xmp:Rating>.

Desktop in use: PhotoReport 0.3.32. That build only embedded develop XMP when Revelar saved; Library picks and IPTC stayed in the database.

Fix

Write into the work-folder original (JPEG embedded / RAW .xmp):

  • pick / reject / stars / colour (xmpDM:pick, Rating, Label), stamped onto the camera packet when present
  • resolved IPTC (caption, title, city, keywords, creator…)
  • develop soft crop as today

Catch-up when the desktop opens for current events; live on pick / IPTC save / develop.

Evidence

  • Folder: ~/Desktop/2026/20261114 - Águas Santas Milaneza x SL Benfica
  • Screenshot of Library with picks + IPTC panel open; files on disk empty of PhotoReport XMP.
## Problem Importing today’s work-folder JPEGs (`Desktop/2026/20261114 - Águas Santas…`) into Lightroom shows none of the PhotoReport work: no picks, no IPTC caption/title/city, no develop soft crop. Checked on disk (ExifTool): 124 JPG, **0** with `photoreport:embed`, **0** with `xmpDM:Pick`, **0** IPTC captions. Only the camera’s `<xmp:Rating>0</xmp:Rating>`. Desktop in use: **PhotoReport 0.3.32**. That build only embedded develop XMP when Revelar saved; Library picks and IPTC stayed in the database. ## Fix Write into the work-folder original (JPEG embedded / RAW `.xmp`): - pick / reject / stars / colour (`xmpDM:pick`, Rating, Label), stamped onto the camera packet when present - resolved IPTC (caption, title, city, keywords, creator…) - develop soft crop as today Catch-up when the desktop opens for current events; live on pick / IPTC save / develop. ## Evidence - Folder: `~/Desktop/2026/20261114 - Águas Santas Milaneza x SL Benfica` - Screenshot of Library with picks + IPTC panel open; files on disk empty of PhotoReport XMP.
Author
Owner

Confirmed on disk

Folder ~/Desktop/2026/20261114 - Águas Santas Milaneza x SL Benfica (124 JPG):

Check Result
photoreport:embed 0
xmpDM:Pick 0
IPTC caption 0
Camera xmp:Rating 124 (always 0)

Desktop running: 0.3.32. That build only embeds develop XMP when Revelar saves; Library picks and IPTC stay in the DB and never reach the work-folder file Lightroom imports.

Fix ready (branch task/BIT-262-work-folder-xmp)

  • Write pick / reject / stars / colour + resolved IPTC into the work-folder original (JPEG embedded XMP / RAW .xmp)
  • Stamp xmpDM:pick, Rating, Label and key IPTC onto the camera packet (Lightroom Attribute bar)
  • Replace Canon’s <xmp:Rating>0</xmp:Rating> element (not only attributes)
  • Wrap a full XMP packet when the JPEG had no camera XMP
  • Catch-up on desktop open for current events; live on pick / IPTC save / develop / autopilot

Needs a desktop rebuild (UI is bundled; Rust merge lives in the shell). Vitest for the sidecar packet: 6/6. Rust merge tests: pick+crop, empty wrap, IPTC children, Canon rating element.

## Confirmed on disk Folder `~/Desktop/2026/20261114 - Águas Santas Milaneza x SL Benfica` (124 JPG): | Check | Result | |---|---| | `photoreport:embed` | **0** | | `xmpDM:Pick` | **0** | | IPTC caption | **0** | | Camera `xmp:Rating` | 124 (always 0) | Desktop running: **0.3.32**. That build only embeds develop XMP when Revelar saves; Library picks and IPTC stay in the DB and never reach the work-folder file Lightroom imports. ## Fix ready (branch `task/BIT-262-work-folder-xmp`) - Write pick / reject / stars / colour + resolved IPTC into the work-folder original (JPEG embedded XMP / RAW `.xmp`) - Stamp `xmpDM:pick`, Rating, Label and key IPTC onto the camera packet (Lightroom Attribute bar) - Replace Canon’s `<xmp:Rating>0</xmp:Rating>` element (not only attributes) - Wrap a full XMP packet when the JPEG had no camera XMP - Catch-up on desktop open for current events; live on pick / IPTC save / develop / autopilot Needs a **desktop rebuild** (UI is bundled; Rust merge lives in the shell). Vitest for the sidecar packet: 6/6. Rust merge tests: pick+crop, empty wrap, IPTC children, Canon rating element.
Author
Owner

PR: #263

Needs a desktop rebuild/release — 0.3.32 will not write these marks.

PR: https://git.bitreport.pt/BitReport.pt/photoreport/pulls/263 Needs a desktop rebuild/release — 0.3.32 will not write these marks.
spark closed this issue 2026-11-14 16:48:33 +00:00
Author
Owner

Deployed

Piece Status
PR #263 merged to main
app.next (ui-manifest) 86b871a (this fix)
Desktop on this Mac 0.3.33 installed and running
Tag desktop-v0.3.33 pushed; Actions desktop-release in progress on the macos runner
Release https://git.bitreport.pt/BitReport.pt/photoreport/releases/tag/desktop-v0.3.33 (aarch64 DMG attached)

Open the Águas Santas event once so catch-up writes picks/IPTC into the work-folder files, then re-import in Lightroom (or Metadata → Read Metadata From Files).

## Deployed | Piece | Status | |---|---| | PR [#263](https://git.bitreport.pt/BitReport.pt/photoreport/pulls/263) | merged to `main` | | `app.next` (`ui-manifest`) | **86b871a** (this fix) | | Desktop on this Mac | **0.3.33** installed and running | | Tag `desktop-v0.3.33` | pushed; Actions `desktop-release` in progress on the macos runner | | Release | https://git.bitreport.pt/BitReport.pt/photoreport/releases/tag/desktop-v0.3.33 (aarch64 DMG attached) | Open the Águas Santas event once so catch-up writes picks/IPTC into the work-folder files, then re-import in Lightroom (or Metadata → Read Metadata From Files).
Author
Owner

Picks were in pr.filemarks (182 PICK) but ftp_write_xmp never landed on disk — soft-crop bookkeeping ran before the write and errors were swallowed.

I flushed the remembered marks into the work-folder JPEGs on this Mac: 183 files with xmpDM:pick=1, 301 with photoreport:embed. Lightroom needs a folder synchronize / re-import to see them.

PR #264 writes the XMP first, re-flushes on catch-up, retries every 10 minutes, and moves embeds off the UI thread (desktop 0.3.34).

Picks were in `pr.filemarks` (182 PICK) but `ftp_write_xmp` never landed on disk — soft-crop bookkeeping ran before the write and errors were swallowed. I flushed the remembered marks into the work-folder JPEGs on this Mac: 183 files with `xmpDM:pick=1`, 301 with `photoreport:embed`. Lightroom needs a folder synchronize / re-import to see them. PR #264 writes the XMP first, re-flushes on catch-up, retries every 10 minutes, and moves embeds off the UI thread (desktop 0.3.34).
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BitReport.pt/photoreport#262