flutter_native_image icon indicating copy to clipboard operation
flutter_native_image copied to clipboard

[Bug] Cannot get image properties if file name contain white space on iOS

Open thanhbinh84 opened this issue 4 years ago • 3 comments

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.

thanhbinh84 avatar Jul 25 '20 05:07 thanhbinh84

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);.

aliasgarlabs avatar Sep 16 '21 07:09 aliasgarlabs

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);.

Thank you! I was stuck for hours on this one... @btastic please consider adding this in the documentation

loic-hamdi avatar Aug 31 '22 16:08 loic-hamdi

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);.

thank you so much.

huylethanh avatar Oct 03 '22 07:10 huylethanh