UIImagePickerControllerEditedImage returns offset image

Number:rdar://36292067 Date Originated:04.01.2018
Status:Open Resolved:
Product:iOS Product Version:11.2
Classification: Reproducible:Always
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

iOS 11.2

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


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!