From 036352145038a455ea35fce368b4ac94c2017cb8 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 16 Jan 2026 09:40:31 +0100 Subject: [PATCH 1/7] fix(preview): Properly access blurhash value Signed-off-by: Louis Chmn --- src/components/FileComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FileComponent.vue b/src/components/FileComponent.vue index 2d685e633..f7d84b30e 100644 --- a/src/components/FileComponent.vue +++ b/src/components/FileComponent.vue @@ -157,7 +157,7 @@ export default { }, hasBlurhash() { - return this.file.attributes.metadataBlurhash !== undefined + return this.file.attributes['metadata-blurhash'] !== undefined }, }, @@ -242,7 +242,7 @@ export default { const width = (this.$refs.canvas as HTMLCanvasElement).width const height = (this.$refs.canvas as HTMLCanvasElement).height - const pixels = decode(this.file.attributes.metadataBlurhash, width, height) + const pixels = decode(this.file.attributes['metadata-blurhash'], width, height) const ctx = (this.$refs.canvas as HTMLCanvasElement).getContext('2d') as CanvasRenderingContext2D const imageData = ctx.createImageData(width, height) as ImageData From 0ddc24c2058c66f1493acb0fe82376cb718b1d5f Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 16 Jan 2026 09:40:48 +0100 Subject: [PATCH 2/7] feat(preview): Do not request small preview if blurhash exists Signed-off-by: Louis Chmn --- src/components/FileComponent.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/FileComponent.vue b/src/components/FileComponent.vue index f7d84b30e..69d94778b 100644 --- a/src/components/FileComponent.vue +++ b/src/components/FileComponent.vue @@ -27,13 +27,13 @@ diff --git a/src/components/PhotosPicker.vue b/src/components/PhotosPicker.vue index 1ffbf6a5b..b0d439492 100644 --- a/src/components/PhotosPicker.vue +++ b/src/components/PhotosPicker.vue @@ -81,7 +81,7 @@ :scroll-to-section="targetMonth" @need-content="getFiles" @focusout.native="onFocusOut"> -