3

I can't find a way to implement a profile pic saving, can somebody help me with example? I'm capturing an image using MediaPicker (from Xamarin Labs), and then don't know how to crop it or resize to smaller mb size, tried Xamarin Resizer, but can't crop image if it is in wrong format.

Can somebody help me with that? May be there is component that I'm missing?

animekun
  • 1,789
  • 4
  • 28
  • 45

2 Answers2

2

Take a look at this answer, showing you how you can approach the issue of resizing.

The essence is you can create a Xamarin Forms service and corresponding code that uses native functionality to crop. Native code performs much better - memory requirements, performance etc.

For the exact cropping code you can search SO for iOS and Android native solutions and transform them to Xamarin code

Sten Petrov
  • 10,943
  • 1
  • 41
  • 61
0

Try asceticcropper

Customizable, predefined masks, works on ios and android