Use the scaled and moved image from the iPhone UIImagePickerController to match the labels on the overlay image and still match them after selection and merge them as

UIImagePickerController when editing in the preview window with an overlay image after scaling and moving the selected or selected image to match the labels on the overlay image, the edited result does not seem to support the aspect, so when both merge, the images and the edited image overlap, the edited image does not matches the labels on the overlay image, for example, when previewing after scaling and moving.

How to make the edited image still match the labels of the overlay image when merged into one image?

I managed to do this without editing permission on the UIImagePickerController, when I take a picture with the iPhone camera, I can see the overlay image on the screen, take a picture so that it matches the marks on the overlay image, and when I combine both of them, the image taken is still matches the marks on the overlay image. (I control the orientation and scale so that the merger is successful.)

I will also be able to get an overlay image on the preview screen (scaling and moving) after selecting an image from the device’s image library.

I use the info dictionary to get the UIImagePickerControllerEditedImage when the allowEditing property of the UIImagePickerController is enabled. I also know about the existence of a UIImagePickerControllerCropRect in the information dictionary and the differences between the images taken by the device’s camera and the stored images in the device library, not necessarily accepted by the device.

+3
source share

Source: https://habr.com/ru/post/1796340/


All Articles