Skip to content

Allow option to lock aspect ratio #1

@gianpaj

Description

@gianpaj

First of all thanks a lot for putting this plugin together!
The current ionic-native one is very basic and simple things like 90-degree rotation should be supported.

If it would be possible to lock the aspect ratio, that would be super cool :)

BTW, i was getting an issue installing this plugin. I think the js file is called icrop.js in
https://github.com/isathyam/cordova-plugin-icrop/blob/master/plugin.xml#L20

but i'm not an expert in cordova plugins.

$ cordova plugin add --save cordova-plugin-icrop
Installing "cordova-plugin-icrop" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-icrop': Error: Uh oh!
ENOENT: no such file or directory, open 'app/plugins/cordova-plugin-icrop/www/crop.js'
    at Error (native)
    at Object.fs.openSync (fs.js:641:18)
    at Object.fs.readFileSync (fs.js:509:33)
    at install (app/platforms/android/cordova/lib/pluginHandlers.js:173:36)
    at Object.process (app/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (app/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:117:20)
    at PluginManager.addPlugin (app/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:147:17)
    at app/platforms/android/cordova/Api.js:254:18
    at _fulfilled (app/platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (app/platforms/android/cordova/node_modules/q/q.js:883:30)
Error: Uh oh!
ENOENT: no such file or directory, open 'app/plugins/cordova-plugin-icrop/www/crop.js'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions