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 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 16:16:13 +02:00
co-authored by Claude Opus 5
parent e2ed8547c5
commit bdaecd4d26
+2
View File
@@ -117,6 +117,8 @@ export default function ActivityFormScreen() {
allowsMultipleSelection: true, allowsMultipleSelection: true,
selectionLimit: limit, selectionLimit: limit,
quality: 0.8, 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) { if (!result.canceled && result.assets) {