Closed dvbthien closed 1 month ago
Happy to, but we should figure out if there is a side effect for the saving method.
I've already tried and haven't found any major issues. The assets are saved with the same checksum. You can investigate side effect further.
More information: When I download a remote image on iOS 16.7 from a different iPhone, I download the same remote image without issue. However, the problem persists when the image is a .jpg taken with an iPhone. PHAssetCreationRequest may work differently on each iOS version.
Your package is excellent. Thank you for your dedication.
@dvbthien Could you verify if https://github.com/fluttercandies/flutter_photo_manager/pull/1194 fixes the issue?
@AlexV525 I'll test it and let you know soon. Thanks
Hi @AlexV525, I have tested it, and it works perfectly. The issue has been resolved.
Version
3.5.0
Platforms
iOS
Device Model
iPhone XS (IOS 15)
flutter info
How to reproduce?
Hi @AlexV525,
The Immich mobile uses this package to save remote images to the gallery on iOS. However, when I downloaded a remote image on iOS 15.1, the locally downloaded image had a different checksum than the remote image. As a result, Immich on mobile displayed two images: one local image and one remote image. It only happens with images.
After investigating the problem, it seems that photo_manager uses PHAssetCreationRequest in saveImageWithPath to create a new Photos asset, which sometimes changes the info metadata and results in a file with a different hash. Can you add creationRequestForAssetFromImageAtFileURL and creationRequestForAssetFromVideoAtFileURL to add raw assets to the gallery without changing the checksum?
I really appreciate you taking the time to read this.
Logs
No response
Example code (optional)
No response
Contact
No response