Leave a photo in place until the JPEG is finished #28

Merged
spark merged 1 commits from task/jpeg-complete into main 2026-10-18 16:26:24 +01:00
Owner

Summary

  • A JPEG is ingested or moved only when it starts with the start-of-image marker and ends with the end-of-image marker. A pause while the camera is still sending no longer counts as a finished file.
  • The server no longer decodes a cut-off file into a grey preview. The file stays in the drop folder until the transfer finishes.
  • Desktop 0.3.19 applies the same check before handing a local FTP file to the app and before moving it into the event folder.

Test plan

  • A JPEG that stops growing but has no end marker stays where the camera is writing it
  • A finished JPEG is ingested once its size is stable
  • A finished but unreadable JPEG is marked failed
  • On the desktop, a file the FTP session reports as finished is not moved until the end marker is on disk
## Summary - A JPEG is ingested or moved only when it starts with the start-of-image marker and ends with the end-of-image marker. A pause while the camera is still sending no longer counts as a finished file. - The server no longer decodes a cut-off file into a grey preview. The file stays in the drop folder until the transfer finishes. - Desktop 0.3.19 applies the same check before handing a local FTP file to the app and before moving it into the event folder. ## Test plan - [ ] A JPEG that stops growing but has no end marker stays where the camera is writing it - [ ] A finished JPEG is ingested once its size is stable - [ ] A finished but unreadable JPEG is marked failed - [ ] On the desktop, a file the FTP session reports as finished is not moved until the end marker is on disk
spark added 1 commit 2026-10-18 16:26:02 +01:00
Leave a photo in place until the JPEG is finished.
ci / rust (pull_request) Failing after 36s
ci / typescript (pull_request) Failing after 6m28s
01cb66fe23
A pause while the camera is still sending was treated as a finished file, so a cut-off image was moved and stored with a grey preview.
spark merged commit c51ab4b010 into main 2026-10-18 16:26:24 +01:00
Author
Owner

A JPEG stays where it is until it ends with the end-of-image marker. A pause while the camera is still sending no longer moves the file or stores the grey fill of the missing rows.

API and app deploy from c51ab4b010. Local FTP on the installed desktop app (0.3.18) still uses the old check; 0.3.19 has the same gate and needs a new installer.

A JPEG stays where it is until it ends with the end-of-image marker. A pause while the camera is still sending no longer moves the file or stores the grey fill of the missing rows. API and app deploy from c51ab4b0101e23d03a13981f7de40f938ef7e2f2. Local FTP on the installed desktop app (0.3.18) still uses the old check; 0.3.19 has the same gate and needs a new installer.
Sign in to join this conversation.