npm i -g ionic && npm i -g cordova
(You may need to sudo
for EACCES errors)git clone git@github.com:itsru/Ionic3-Camera-with-CropperJS.git
cd Ionic3-Camera-with-CropperJS
npm install
ionic cordova platform add Android
or ionic cordova platform add ios
ionic cordova run android
or ionic cordova run ios
from a terminalThis app is to demo the utilization of Camera or Album select and utilization of CropperJS in a modal view.
If you have Ionic View on your device then to view the demo use : c5286062
Known iOS resource limits: As iOS devices limit memory, the browser may crash when you are cropping a large image (iPhone camera resolution). To avoid this, you may resize the image first (below 1024px) before start a cropper.
Ionic - http://ionicframework.com/
CropperJS - https://github.com/fengyuanchen/cropperjs