π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Avoid upscaling FFmpeg thumbnails
Neeraj Guptadf82d206e913
diff --git a/web/packages/gallery/services/ffmpeg/index.ts b/web/packages/gallery/services/ffmpeg/index.tsindex effca26a43..3ad462b21f 100644--- a/web/packages/gallery/services/ffmpeg/index.ts+++ b/web/packages/gallery/services/ffmpeg/index.ts@@ -64,9 +64,10 @@ const _makeGenThumbnailCommand = (seekTime: number, forHDR: boolean) => ["1","-vf",[- // Scale it to a maximum height of 720 keeping aspect ratio, ensuring- // that the dimensions are even (subsequent filters require this).- "scale=-2:720",+ // Scale it down to a maximum height of 720 keeping aspect ratio,+ // ensuring that the dimensions are even (subsequent filters require+ // this).+ "scale=-2:'min(720,trunc(ih/2)*2)'",forHDR? // Tone-map HDR frames so thumbnails are not washed out.[