cordova-plugin-crop
cordova-plugin-crop copied to clipboard
Plugin is not updating to the modified targetWidth and targetHeight latest version
I followed the instructions bellow to install this Crop plugin for ionic 3 but it is not pulling the latest version with support for targetWidth and targetHeight source code.
$ ionic cordova plugin add cordova-plugin-crop $ npm install --save @ionic-native/crop
When I run the commands above it is pulling this old version
/* global cordova */ var crop = module.exports = function cropImage (success, fail, image, options) { options = options || {} options.quality = options.quality || 100 return cordova.exec(success, fail, 'CropPlugin', 'cropImage', [image, options]) }
module.exports.promise = function cropAsync (image, options) { return new Promise(function (resolve, reject) { crop(resolve, reject, image, options) }) }
Instead of the old version, I want npm to pull this version of Crop.js.
How to do force to pull it?
/* global cordova */ var crop = module.exports = function cropImage (success, fail, image, options) { options = options || {} options.quality = options.quality || 100 options.targetWidth = options.targetWidth || -1 options.targetHeight = options.targetHeight || -1 return cordova.exec(success, fail, 'CropPlugin', 'cropImage', [image, options]) }
module.exports.promise = function cropAsync (image, options) { return new Promise(function (resolve, reject) { crop(resolve, reject, image, options) }) }
Try cordova plugin add https://github.com/jeduan/cordova-plugin-crop
have you been able to solve?