Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix live-photo preview

Abhinavccc6b5666f4e
diff --git a/apps/photos/src/utils/file/index.ts b/apps/photos/src/utils/file/index.ts
index e49d75b18e..f5f324d01b 100644
--- a/apps/photos/src/utils/file/index.ts
+++ b/apps/photos/src/utils/file/index.ts
@@ -386,7 +386,8 @@ async function getRenderableLivePhotoURL(
);
const convertedVideoBlob = await getPlayableVideo(
livePhoto.videoNameTitle,
- videoBlob
+ videoBlob,
+ true
);
const { originalURL: originalImageURL, convertedURL: convertedImageURL } =
getFileObjectURLs(imageBlob, convertedImageBlob);
@@ -411,7 +412,7 @@ export async function getPlayableVideo(
if (isPlayable && !forceConvert) {
return videoBlob;
} else {
- if (!isElectron()) {
+ if (!forceConvert && !isElectron()) {
return null;
}
addLogLine(