From 7e70318998b1c44454e519f4de724aa1eda3d146 Mon Sep 17 00:00:00 2001 From: naelfe <108142825+naelfe@users.noreply.github.com> Date: Wed, 9 Sep 2026 10:15:27 +0200 Subject: [PATCH] fix(auto-upload): reduce JPEG compression quality to 0.85 Quality 1.0 forces an inefficient encode and re-encodes the source HEIC's compression artifacts, roughly tripling the resulting file size with no visible gain. Fixes #4287 Signed-off-by: naelfe <108142825+naelfe@users.noreply.github.com> --- iOSClient/Utility/NCCameraRoll.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOSClient/Utility/NCCameraRoll.swift b/iOSClient/Utility/NCCameraRoll.swift index 8cccc2b2af..d1f7515ac4 100644 --- a/iOSClient/Utility/NCCameraRoll.swift +++ b/iOSClient/Utility/NCCameraRoll.swift @@ -345,7 +345,7 @@ final class NCCameraRoll: CameraRollExtractor { let jpegData = CIContext().jpegRepresentation( of: ciImage, colorSpace: colorSpace, - options: [compressionQuality: 1.0] + options: [compressionQuality: 0.85] ) else { throw NSError(domain: "ExtractAssetError", code: 3, userInfo: [NSLocalizedDescriptionKey: "JPEG conversion failed"])