-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.2 isn't avaliable in NPM #66
Comments
Thank you @brcontainer |
Is not possible... You maybe can recreate this methods in a provider, but it's "complicated" ... use in "pure" JS in your method: var options = {
uri: uri,
folderName: "Protonet Messenger",
quality: 90,
width: 1280,
height: 1280,
base64: true,
fit: false
};
window.ImageResizer.resize(options,
function(image) {
// success: image is the new resized image
}, function() {
// failed: grumpy cat likes this function
}); An example with methodFooBar()
{
return new Promise((resolve, reject) => {
let options = {
uri: uri,
folderName: "Protonet Messenger",
quality: 90,
width: 1280,
height: 1280,
base64: true,
fit: false
};
(<any>window).ImageResizer.resize(options, (image) => {
resolve(image);
}, () => {
reject();
});
});
}
|
Thank you for your efforts! |
Update NPM please.
In NPM 0.1.1 is last version, but I need 0.2 features for Android (base64), thanks!
Alternative solution
Install using command:
Or put in your
package.json
The text was updated successfully, but these errors were encountered: