Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

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

Open
thanhbinh84 opened this issue Jul 25, 2020 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed iOS Issue on iOS specific devices

Comments

@thanhbinh84
Copy link

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.

@btastic btastic added good first issue Good for newcomers help wanted Extra attention is needed iOS Issue on iOS specific devices labels Apr 7, 2021
@aliasgarlabs
Copy link

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

@loic-hamdi
Copy link

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

@huylethanh
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed iOS Issue on iOS specific devices
Projects
None yet
Development

No branches or pull requests

5 participants