[backend/drive] Also strip exif/xmp from thumbnail

This commit is contained in:
Laura Hausmann 2024-03-07 01:19:15 +01:00
parent f8a5d7c06c
commit 605c636e1e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -149,6 +149,8 @@ public class DriveService(
{ {
// Generate thumbnail // Generate thumbnail
var thumbnailImage = image.Clone(); var thumbnailImage = image.Clone();
thumbnailImage.Metadata.ExifProfile = null;
thumbnailImage.Metadata.XmpProfile = null;
if (Math.Max(image.Size.Width, image.Size.Height) > 1000) if (Math.Max(image.Size.Width, image.Size.Height) > 1000)
thumbnailImage.Mutate(p => p.Resize(image.Width > image.Height thumbnailImage.Mutate(p => p.Resize(image.Width > image.Height
? new Size(1000, 0) ? new Size(1000, 0)