You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to resize an image on iOS 12.x no errors shown but the resized image is empty (just white background).
The problem seems to be due to the path assets-library:// which is not supported (for example "assets-library://asset/asset.JPG?id=8458AC82-B00F-4595-8B78-A135643A3AB3&ext=JPG")
Using cordova file plugin and window.resolveLocalFileSystemURL to convert the file to cdv file path seems to fix the problem and the image is resized correctly.
The text was updated successfully, but these errors were encountered:
I am also facing the issue when resizing image using the Ionic ImageResizer plugin on iPhone. App gets crashed and no error printed in the console. Here is my code -
compressImage(fileUri: string){
return new Promise((resolve, reject)=>{
console.log('######', fileUri);
let options: ImageResizerOptions = {
uri: fileUri,
folderName: this.file.externalDataDirectory,
quality: 50,
width: 1280,
height: 1280,
base64: true
} ;
When trying to resize an image on iOS 12.x no errors shown but the resized image is empty (just white background).
The problem seems to be due to the path assets-library:// which is not supported (for example "assets-library://asset/asset.JPG?id=8458AC82-B00F-4595-8B78-A135643A3AB3&ext=JPG")
Using cordova file plugin and window.resolveLocalFileSystemURL to convert the file to cdv file path seems to fix the problem and the image is resized correctly.
The text was updated successfully, but these errors were encountered: