flutter_native_image
flutter_native_image copied to clipboard
[Bug] Cannot get image properties if file name contain white space on iOS
Steps to reproduce:
- Generate a file with path containing white space such as .../26-Jun-2020 12:24:45.png
- Get image properties
ImageProperties properties = await FlutterNativeImage.getImageProperties(filePath);
Expected result:
- Be able to get height and width of image
Actual result:
- properties.height = 0 & properties.width = 0
It happens on iOS only, work well on Android. It can workaround by remove all white space, but I just report here so others will be noticed.
This is still happening in flutter_native_image: ^0.0.6+1
. My path contains Application Support
folder. The workaround I'm using is by encoding the file path using Uri.encodeFull(filePath);
.
This is still happening in
flutter_native_image: ^0.0.6+1
. My path containsApplication Support
folder. The workaround I'm using is by encoding the file path usingUri.encodeFull(filePath);
.
Thank you! I was stuck for hours on this one... @btastic please consider adding this in the documentation
This is still happening in
flutter_native_image: ^0.0.6+1
. My path containsApplication Support
folder. The workaround I'm using is by encoding the file path usingUri.encodeFull(filePath);
.
thank you so much.