move,scale and crop the image in android like facebook profile picture

点点圈 提交于 2019-12-05 06:23:58

I had a similar requirement. Created a cropping component using modified Photoview and Cropper library. User can select image from Gallery or take a picture from Camera and then crop the image with move and scale, similar to Facebook profile picture cropping. Sharing the project on github.

Please check the github project here: https://github.com/ozeetee/AndroidImageZoomCrop

I don't fully understand what you are trying to accomplish. I have been working on something similar, I think.


https://github.com/crystalpal/cropper


What this does: Reads an image from storage, displays it along with a cropping rectangle, let's you crop the selected area, and saves the cropped image. You can adjust the size of the cropper and the size of the saved image.

Using an intent, pass the file of the image to the new activity. From there, everything should be automatic.

Note:this project was written in Android 4.2, code is documented, but a decent knowledge of Android is recommended. The project uses the qoppa pdf library.

I have taken reference from below tutorial when I implemented image capture and crop functionality.This will be helpful to you, I am sure. Let me know, if any issues.I would try to help further :)

http://code.tutsplus.com/tutorials/capture-and-crop-an-image-with-the-device-camera--mobile-11458

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