Closed
Description
Make sure to check the demo app(s) for sample usage
done
Make sure to check the existing issues in this repository
checked
Which platform(s) does your issue occur on?
- iOS, android not tested yet.
- iOS 11.1
- emulator and device (IPhone 6)
Please, provide the following version numbers that your issue occurs with:
- CLI: 3.3.0
- Cross-platform modules: 3.3.0
- Runtime(s): IOS: 3.3.0, Android 3.3.1
- Plugin(s): "dependencies": {
"@angular/animations": "^4.4.1",
"@angular/common": "^4.4.1",
"@angular/compiler": "^4.4.1",
"@angular/core": "^4.4.1",
"@angular/forms": "^4.4.1",
"@angular/http": "^4.4.1",
"@angular/platform-browser": "^4.4.1",
"@angular/router": "^4.4.1",
"base-64": "^0.1.0",
"nativescript-angular": "^4.4.1",
"nativescript-audio": "^4.0.3",
"nativescript-camera": "^3.1.3",
"nativescript-carousel": "^3.1.1",
"nativescript-floatingactionbutton": "^4.1.2",
"nativescript-fresco": "^3.0.6",
"nativescript-geolocation": "^4.2.0",
"nativescript-imagecropper": "^0.1.2",
"nativescript-imagepicker": "^4.0.1",
"nativescript-ios-uuid": "^1.0.0",
"nativescript-keyboardshowing": "^1.0.0",
"nativescript-loading-indicator": "^2.4.0",
"nativescript-local-notifications": "^2.0.0",
"nativescript-network": "file:../../Plugins/nativescript-network/src",
"nativescript-photoviewer": "^1.2.0",
"nativescript-platform": "^1.2.2",
"nativescript-pro-ui": "^3.2.0",
"nativescript-social-login": "^1.8.2",
"nativescript-socket.io": "^0.7.0",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.4.2",
"tns-core-modules": "^3.3.0",
"zone.js": "~0.8.2"
},
"devDependencies": {
"@angular/compiler-cli": "^4.4.1",
"@ngtools/webpack": "~1.6.0",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"copy-webpack-plugin": "~4.0.1",
"extract-text-webpack-plugin": "~3.0.0",
"lazy": "1.0.11",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-typescript": "~0.5.0",
"nativescript-dev-webpack": "^0.8.0",
"nativescript-worker-loader": "~0.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.1.0",
"typescript": "~2.4.2",
"webpack": "~3.2.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-sources": "~1.0.1"
},
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
When i use the imagepicker to select an image the quality of the image I get is very bad. A 25mb file is shrinked to about 25kb. I have not changed anything and i'm pretty sure that this behaviour is occuring since i updated the plugin.
Is there any code involved?
This is the related code. As you can see, i'm also using the imagecropper plugin as an option but the problem exists in either of the two ways.
`selectImages(msg) {
var context = picker.create({
mode: "single",
android: {
read_external_storage: this.getLine(234)
}
});
return new Promise((resolve, reject)=>{
return context
.authorize()
.then(()=>{
return context.present();
})
.then(
selection=> {
selection.forEach(function(selected) {
if(selected instanceof ImageAsset){
let image = new ImageSource()
selected.getImageAsync((img, err)=>{
image.fromData(img).then(
res=>{
console.log(res)
if(msg.userCut === "true"){
let cropper = new icModule.ImageCropper();
resolve(cropper.show(image, {lockSquare: true}));
}
else{
resolve({image:image});
}
})
})
}
});
}, err=>{
console.log(err)
return err;
}
)
.catch(function (e) {
console.log(e)
return e
});
})
}`
Metadata
Metadata
Assignees
Labels
No labels