How to crop(Resize) capture image from iPhone and selecting from photo album?

≯℡__Kan透↙ 提交于 2019-12-23 02:45:46

问题


i have created custom camera overlay view from this blog AROVerlayViewController it's all working properly but i have one problem after capturing image the image is going to be streched while showing in ImageView

here as you can see the image is going to be stretched it's not showing the original captured image. and how to add location while capturing image. for image cropping i have used this code from here

回答1:


So it is the camera with which you are taking a picture right (even if its a camera with custom overlay views). Then to get the high res image, you will need to get the actual image (not edited) when your app hits the UIImagePickerControllerDelegate method.

Specifically in this method

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

The dictionary info has a value with key UIImagePickerControllerOriginalImage which is what you are looking for.




回答2:


i have solved my problem by this example it's very useful. https://github.com/Nyx0uf/NYXImagesKit



来源:https://stackoverflow.com/questions/11717962/how-to-cropresize-capture-image-from-iphone-and-selecting-from-photo-album

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!