From bdaecd4d2657903fee9fabaa5c0079010a12c445 Mon Sep 17 00:00:00 2001 From: Riccardo Mancini Date: Wed, 16 Sep 2026 16:16:13 +0200 Subject: [PATCH] Convert HEIC gallery photos to JPEG on iOS Use the compatible asset representation so the picker transcodes HEIC to JPEG before upload, a format the backend resizes and browsers display. Co-Authored-By: Claude Opus 5 --- app/(protected)/activity/add.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/(protected)/activity/add.tsx b/app/(protected)/activity/add.tsx index ed3e4b9..3dffc86 100644 --- a/app/(protected)/activity/add.tsx +++ b/app/(protected)/activity/add.tsx @@ -117,6 +117,8 @@ export default function ActivityFormScreen() { allowsMultipleSelection: true, selectionLimit: limit, quality: 0.8, + // iOS: converte HEIC in JPEG, formato gestito dal backend e visualizzabile sul web + preferredAssetRepresentationMode: ImagePicker.UIImagePickerPreferredAssetRepresentationMode.Compatible, }); if (!result.canceled && result.assets) {