fix(pdf): shrink place photos without AbortSignal.timeout and decode them near thumbnail size (#1501)

Safari before 16 has no AbortSignal.timeout, which cost the whole export; a
controller and a timer replace it. Photos decode at twice the thumbnail
height and three at a time, so a long trip no longer ends the web view.
This commit is contained in:
Maurice
2026-11-13 10:48:58 +01:00
parent 308daec14e
commit 318e71aa0c
3 changed files with 33 additions and 8 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ export async function downloadTripPDF({ trip, days, places, assignments: allStor
return url ? [url] : []
})),
signal,
)
).catch(() => new Map<string, string>())
const totalAssigned = new Set(
Object.values(assignments).flatMap(a => a.map(x => x.place?.id)).filter(Boolean)