npm i -g ionic && npm i -g cordova
(You may need tosudo
for EACCES errors)
- clone this repo:
git clone git@github.com:itsru/Ionic3-Camera-with-CropperJS.git
cd Ionic3-Camera-with-CropperJS
npm install
- Add your platform
ionic cordova platform add Android
orionic cordova platform add ios
- run
ionic cordova run android
orionic cordova run ios
from a terminal
This 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