Instead of transforming coordinates after Gemini returns crop_bounds, strip EXIF orientation from image before sending to Gemini. This ensures: - Gemini analyzes the same raw image as our backend - crop_bounds are in raw image coordinate space - No coordinate transformation needed - Works for all images (with or without EXIF) Added strip_exif_orientation() utility that removes orientation tag and re-encodes image. Used in extract_label endpoint before sending to Gemini.
19 KiB
19 KiB