How to take a photo or select an image, edit(cut) it, and upload it?

I am new here developing front-end of mobile app. I think there should be but I don’t know what’s the solution of such a process, as it is widely used in social-communication apps. I really appreciate any help or suggestions! - to take a photo from camera or - to select file - something like this to crop images


Thanks a lot! I think that’s what all I need!