Skip to content

[camera] Computed photo orientation isn't always right on iOS #26786

@mklim

Description

@mklim

We weren't saving iOS photo orientations at all until flutter/plugins#1037, but it looks like that patch doesn't work properly across all cases. See this comment by @idealopamp for a full analysis.

I've been testing it out with camera lib 0.2.9+1, and it seems like there is a problem with the orientation that is being detected with the CMMotionManager. In general, we do not always get the correct orientations for our photos, especially when the device is pitched at an angle > 45% (I'm using the term pitch as defined in https://developer.apple.com/documentation/coremotion/getting_processed_device-motion_data/understanding_reference_frames_and_device_attitude )

Metadata

Metadata

Assignees

Labels

p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions