diff --git a/src/screens/CameraScreen.tsx b/src/screens/CameraScreen.tsx index c519d87a..46acba7e 100644 --- a/src/screens/CameraScreen.tsx +++ b/src/screens/CameraScreen.tsx @@ -235,12 +235,16 @@ export default function CameraScreen({ console.log('Capturing from built-in camera fallback...'); if (expoCameraRef.current) { const photo = await expoCameraRef.current.takePictureAsync({ - quality: 0.95, - skipProcessing: false, + quality: 0.7, // Lower quality slightly to reduce file size and OOM risk + skipProcessing: true, // Crucial for Android tablets: prevents internal OOM that corrupts the image file }); capturedUri = photo.uri; rawWidth = photo.width; rawHeight = photo.height; + + // Wait 500ms to ensure the OS has completely flushed the file to disk. + // This prevents "Loading bitmap failed" when ImageManipulator reads it too fast. + await new Promise((resolve) => setTimeout(resolve, 500)); } else { throw new Error('Kamera-Referenz ist nicht verfügbar.'); }