UIImagePickerControllerEditedImage returns offset image

Originator:aivars.meijers
Number:rdar://36292067 Date Originated:04.01.2018
Status:Open Resolved:
Product:iOS Product Version:11.2
Classification: Reproducible:Always
 
Summary: 
UIImagePickerControllerEditedImage returns offset image

Steps to Reproduce:
- Present a UIImagePickerController
- allow cropping
- Select a picture from the photo albums
- Take a screenshot before you proceed to show the masked area
- inspect the output of UIImagePickerControllerEditedImage

Demo project can be found on GitHub: https://github.com/aivars/photo-Picker-Tests

Expected Results:
Area of edited image should match selected area

Actual Results:
The area of edited image is higher than the selected area

Version/Build:
iOS 11.2

Configuration:
iPhone X, iPhone 8 plus, iPad Pro 9,7
Simulators: iPhones 7,8,X

Comments

Duplicated here for iOS 12 SDK: https://openradar.appspot.com/40981822


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!