cordova-plugin-crop icon indicating copy to clipboard operation
cordova-plugin-crop copied to clipboard

Plugin is not updating to the modified targetWidth and targetHeight latest version

Open rodusa opened this issue 6 years ago • 2 comments

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) }) }

rodusa avatar Jun 08 '18 19:06 rodusa

Try cordova plugin add https://github.com/jeduan/cordova-plugin-crop

drmistral avatar Jun 21 '18 13:06 drmistral

have you been able to solve?

lordcoste avatar Feb 04 '19 18:02 lordcoste