Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update the docs around ffmpeg on Intel macOS

Manav Rathi80b86189d08a
diff --git a/docs/docs/photos/troubleshooting/thumbnails.md b/docs/docs/photos/troubleshooting/thumbnails.md
index f26319c2e5..b4627f648b 100644
--- a/docs/docs/photos/troubleshooting/thumbnails.md
+++ b/docs/docs/photos/troubleshooting/thumbnails.md
@@ -22,6 +22,11 @@ canvas.
## Desktop
+> [!NOTE]
+>
+> This issue has been fixed in the latest beta releases, and the fix will be
+> also out in the next release, 1.7.4.
+
The only known case where thumbnails might be missing on desktop is when
uploading **videos** during a Google Takeout or watched folder sync on **Intel
macOS** machines. This is because the bundled ffmpeg that we use does not work
diff --git a/web/apps/photos/src/services/upload/uploadService.ts b/web/apps/photos/src/services/upload/uploadService.ts
index 8e7cd747e9..54239e334e 100644
--- a/web/apps/photos/src/services/upload/uploadService.ts
+++ b/web/apps/photos/src/services/upload/uploadService.ts
@@ -1108,22 +1108,19 @@ const withThumbnail = async (
//
// We can only get here when we're running in our desktop app (since
// only that works with non-File uploadItems), and the thumbnail
- // generation failed. The scenarios are:
+ // generation failed.
//
- // 1. We're trying to generate an image thumbnail on Windows or on
- // ARM64 Linux. This won't be possible since the bundled
- // imagemagick doesn't yet support these OS/arch combinations.
- //
- // 2. We're trying to generate a video thumbnail on Intel macOS.
- // This won't be possible since the bundled ffmpeg doesn't
- // support Rosetta.
- //
- // 3. Some other arbitrary exception happened.
+ // The only know scenario is when we're trying to generate an image
+ // thumbnail on Windows or on ARM64 Linux, or are trying to
+ // generated the thumbnail for an HEIC file on Linux. This won't be
+ // possible since the bundled imagemagick doesn't yet support these
+ // OS/arch combinations.
//
// The fallback in this case involves reading the entire stream into
// memory, and passing that data across the IPC boundary in a single
// go (i.e. not in a streaming manner). This is risky for videos of
- // unbounded sizes, so we can only apply this fallback for images.
+ // unbounded sizes, and since anyways we are not expected to come
+ // here for videos, soo we only apply this fallback for images.
if (fileTypeInfo.fileType == FileType.image) {
const data = await readEntireStream(fileStream.stream);