From d952b620531ad9c874509f3365cee2c11aadbb7e Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Fri, 21 Nov 2025 16:11:47 +0100 Subject: [PATCH] feat(web): show detected faces in spherical photos (#23974) --- pnpm-lock.yaml | 22 ++++-- web/package.json | 11 +-- .../photo-sphere-viewer-adapter.svelte | 71 ++++++++++++++++++- 3 files changed, 93 insertions(+), 11 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4a00b6755a..1228fcd55f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -726,19 +726,22 @@ importers: specifier: ^7.4.47 version: 7.4.47 '@photo-sphere-viewer/core': - specifier: ^5.11.5 + specifier: ^5.14.0 version: 5.14.0 '@photo-sphere-viewer/equirectangular-video-adapter': - specifier: ^5.11.5 + specifier: ^5.14.0 version: 5.14.0(@photo-sphere-viewer/core@5.14.0)(@photo-sphere-viewer/video-plugin@5.14.0(@photo-sphere-viewer/core@5.14.0)) + '@photo-sphere-viewer/markers-plugin': + specifier: ^5.14.0 + version: 5.14.0(@photo-sphere-viewer/core@5.14.0) '@photo-sphere-viewer/resolution-plugin': - specifier: ^5.11.5 + specifier: ^5.14.0 version: 5.14.0(@photo-sphere-viewer/core@5.14.0)(@photo-sphere-viewer/settings-plugin@5.14.0(@photo-sphere-viewer/core@5.14.0)) '@photo-sphere-viewer/settings-plugin': - specifier: ^5.11.5 + specifier: ^5.14.0 version: 5.14.0(@photo-sphere-viewer/core@5.14.0) '@photo-sphere-viewer/video-plugin': - specifier: ^5.11.5 + specifier: ^5.14.0 version: 5.14.0(@photo-sphere-viewer/core@5.14.0) '@types/geojson': specifier: ^7946.0.16 @@ -3573,6 +3576,11 @@ packages: '@photo-sphere-viewer/core': 5.14.0 '@photo-sphere-viewer/video-plugin': 5.14.0 + '@photo-sphere-viewer/markers-plugin@5.14.0': + resolution: {integrity: sha512-w7txVHtLxXMS61m0EbNjgvdNXQYRh6Aa0oatft5oruKgoXLg/UlCu1mG6Btg+zrNsG05W2zl4gRM3fcWoVdneA==} + peerDependencies: + '@photo-sphere-viewer/core': 5.14.0 + '@photo-sphere-viewer/resolution-plugin@5.14.0': resolution: {integrity: sha512-PvDMX1h+8FzWdySxiorQ2bSmyBGTPsZjNNFRBqIfmb5C+01aWCIE7kuXodXGHwpXQNcOojsVX9IiX0Vz4CiW4A==} peerDependencies: @@ -15374,6 +15382,10 @@ snapshots: '@photo-sphere-viewer/video-plugin': 5.14.0(@photo-sphere-viewer/core@5.14.0) three: 0.180.0 + '@photo-sphere-viewer/markers-plugin@5.14.0(@photo-sphere-viewer/core@5.14.0)': + dependencies: + '@photo-sphere-viewer/core': 5.14.0 + '@photo-sphere-viewer/resolution-plugin@5.14.0(@photo-sphere-viewer/core@5.14.0)(@photo-sphere-viewer/settings-plugin@5.14.0(@photo-sphere-viewer/core@5.14.0))': dependencies: '@photo-sphere-viewer/core': 5.14.0 diff --git a/web/package.json b/web/package.json index 27454f7e88..1afe94ac07 100644 --- a/web/package.json +++ b/web/package.json @@ -31,11 +31,12 @@ "@immich/ui": "^0.43.0", "@mapbox/mapbox-gl-rtl-text": "0.2.3", "@mdi/js": "^7.4.47", - "@photo-sphere-viewer/core": "^5.11.5", - "@photo-sphere-viewer/equirectangular-video-adapter": "^5.11.5", - "@photo-sphere-viewer/resolution-plugin": "^5.11.5", - "@photo-sphere-viewer/settings-plugin": "^5.11.5", - "@photo-sphere-viewer/video-plugin": "^5.11.5", + "@photo-sphere-viewer/core": "^5.14.0", + "@photo-sphere-viewer/equirectangular-video-adapter": "^5.14.0", + "@photo-sphere-viewer/markers-plugin": "^5.14.0", + "@photo-sphere-viewer/resolution-plugin": "^5.14.0", + "@photo-sphere-viewer/settings-plugin": "^5.14.0", + "@photo-sphere-viewer/video-plugin": "^5.14.0", "@types/geojson": "^7946.0.16", "@zoom-image/core": "^0.41.0", "@zoom-image/svelte": "^0.3.0", diff --git a/web/src/lib/components/asset-viewer/photo-sphere-viewer-adapter.svelte b/web/src/lib/components/asset-viewer/photo-sphere-viewer-adapter.svelte index cd9a010f78..00f3a6795f 100644 --- a/web/src/lib/components/asset-viewer/photo-sphere-viewer-adapter.svelte +++ b/web/src/lib/components/asset-viewer/photo-sphere-viewer-adapter.svelte @@ -1,4 +1,5 @@