-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image picking fails for live images on newer IOS. #835
Comments
Could you please post the stacktrace? |
Okay I will get on that, I guess I need to update my environment to run iOS 15 so that might take me a bit. |
Hi, `***** Picker:<PHPickerViewController: 0x119516d00> didFinishPicking:(
hope it helps ty :) |
Thank you I’ll take a look! |
Just tried it with a simulator and it works just fine with iOS 15 and live photos. What are the environment you are running on? And how are you picking? |
Ios 15, I'm running on an iPhone 7, have reports of it on iPhone 12 mini and iPhone 12 all on iOS 15. ***** Picker:<PHPickerViewController: 0x1049def70> didFinishPicking:(
|
Are you able to try on an actual device? |
Yes, just tried it on a device running iOS 15 and it works just fine. Could you please try sharing the picture you are trying to pick on? (you'll have to export it while keeping the original data so it doesn't converts to JPEG). |
Here is my call in code FilePickerResult result = await FilePicker.platform And it gives me this issue Hopefully that helps. I'm not sure how to actually send a Live Photo without converting it to live image. But it happens on every single live image so I really don't think its an issue with specific image |
Was investigating this today. This happens because The I am working on a workaround for that, where I covert the HEIC image into a JPEG and return an updated file URL rather than a Here is a naive solution: Or For retrieving the HEIC Image (which seems better since you don't lose the metadata): |
In my testing, the files picked where actually the The problem is that after picking, you may need to extract, like @shreymahendru. The only two approaches I can see here is leaving as it is, or converting it automatically to JPEG, for example, but then again, some devs may want to the live photo for their applications and this would prevent it. |
As a purposed solution whenever the developer has How does that sound to you? |
for me it's perfect thanks |
looks great to me! I saw this issue on ios 15. on ios 14 seems to work fine. Got lot of crashes on sentry during this week Good catch guys! |
Fixed and published with 4.1.3. I took advantage of some of the work that @shreymahendru made by converting Live Photos into static JPEG. Thank you! 🎉 |
Awesome!!! Thanks everyone! |
thanks!!! |
Can you fix it to work without compression? |
Describe the bug
The image picker returns an error when trying to pick a live image on iOS .
Platform
Platform OS version
iOS 15.0
How are you picking?
Both single image and multi image from gallery fail when trying to pick a live image
Details to reproduce the issue
Try to pick a live image from the gallery.
Additional context
Running on actual iPhones via TestFlight on iOS.
The text was updated successfully, but these errors were encountered: