Recued
Menu
← Back to recipes

Add a photo to a set

by recued-core v2 8 views

Use “Add a photo to a set” in Recued. Register one inbound file record as a photo in a set.

Complete workflow

Job Photo Delivery 7 pinned recipes

Use Job Photo Delivery in Recued for exif, metadata, privacy, and gps. It includes 16 built-in actions and 6 ready-to-run workflows. Actions that change data use Recued's approval controls.

You are viewing one recipe in this workflow. Installing it opens the complete pack so its other recipes and background automations arrive together.

Add a photo to a set
This recipe

Use “Add a photo to a set” in Recued. Register one inbound file record as a photo in a set.

pack:job-photo-deliveryphotorecordsv2
by recued-core pinned v2

Use “Open a photo set” in Recued. Open one delivery set for a customer. The set is keyed on its label, so re-running with the same label converges on the same set rather than opening a second one.

pack:job-photo-deliveryphotodeliveryrecords
by recued-core pinned v2

Use “Prepare a photo for delivery” in Recued. Extract one photo's embedded metadata, record exactly what it was carrying, then produce a metadata-stripped delivery copy and a thumbnail derived from that stripped copy.

pack:job-photo-deliveryphotoexifmetadata
by recued-core pinned v2

Use “Review what a set is carrying” in Recued. Show, photo by photo, what a set's images were carrying before they were stripped — GPS coordinates, camera, device serial, capture time. It reads information without changing data in the connected service.

pack:job-photo-deliveryphotoprivacydisclosure
by recued-core pinned v2

Use “Deliver a photo set” in Recued. Mail a set's prepared photos to the customer as attachments.

pack:job-photo-deliveryphotodeliverymail
by recued-core pinned v2

Use “Show the photo sets” in Recued. List photo sets with their customer, status and photo counts. Read-only — it opens no image and runs no CLI.

pack:job-photo-deliveryphotoboardrecords
by recued-core pinned v2
Show all 7 recipes
View pack details, dependencies, and permissions →

Adding a photo

Take the file record id of a photo already in data.file.received — a phone upload, a mail attachment, a webclient upload — and register it against a set.

You choose which photo goes in. This recipe is deliberately manual and takes an explicit record id. A reactive "any new image joins the open set" trigger would be wrong here for the same reason it is wrong in client-document-intake: the file event fires for every inbound file and the record carries no readable origin, so nothing can tell a customer's job photo from a personal one. Auto-enrolling would eventually put the wrong picture in someone's delivery.

Only images are accepted. The MIME type is checked and a non-image is refused rather than registered — the pack's whole contract is about image metadata, and a PDF that reached Prepare would get ExifTool's PDF path, whose stripping is reversible (ExifTool documents old objects as recoverable). Refusing early is the honest boundary.

Status starts pending and stays there until Prepare a photo runs. A pending photo is never delivered.

How it works 24 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (24 steps)
set_id trim
Trim whitespace from setting set id
record_id trim
Trim whitespace from setting record id
inputs_valid all
Check if all conditions are true
inputs_guard guard
Stop if inputs valid equals
set ?
set_found compare
Check if set record id has data
set_guard guard
Stop if set found equals
set_open compare
Check if set record status does not equal delivered
set_open_guard guard
Stop if set open equals
file_meta ?
defaults defaults
Apply defaults
is_image starts_with
Check if mime type starts with image/
image_guard guard
Stop if is image equals
set_ref template
Generate text from a template
existing ?
existing_rows default
Apply default
existing_count count
Count items in existing rows
photo_exists compare
Check if existing count is greater than 0
photo_create ?
skip: step.photo_exists equal true
photo_id coalesce
Use the first available value from: photo create record id, existing rows 0 id
photo_recorded compare
Check if photo id has data
photo_guard guard
Stop if photo recorded equals
set_total ?
card to_summary
Format results as a summary card
Settings 2 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

set id setting = [object Object]
record id setting = [object Object]

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Data it touches

Warehousedata.file

About

Tags

pack:job-photo-deliveryphotorecordsv2

Details

24 steps 2 configurable settings recipe_id: add-photo-to-set