Gemini analyzes images with EXIF orientation applied (e.g., 90° CW rotation), returning crop_bounds in that coordinate space. We need to transform them back to raw image coordinates before cropping. For EXIF orientation 6 (Rotate 90 CW): - Raw: 4032×3024 (landscape) - Displayed (after EXIF): 3024×4032 (portrait) - Transform portrait coords back to landscape before cropping This fixes the issue where crop was applied to wrong image region.
19 KiB
19 KiB