hui-z / image_gallery_saver

flutter中用于保存图片到相册的Plugin
MIT License
271 stars 346 forks source link

EXIF data stripped from images #266

Open jt274 opened 11 months ago

jt274 commented 11 months ago

It appears that when loading an image from HTTP, then saving with the plugin, that EXIF data such as location, title, etc. are stripped from the image.

final res = await http.get(Uri.parse('https://mysite.com/image.jpg'));
await ImageGallerySaver.saveImage(res.bodyBytes, quality: 100);

If downloading the image through a browser, the EXIF data is preserved. Is this a result of the plugin, and is there a way to preserve the entire file (same checksum)?

radikris commented 10 months ago

Hey, I have the same issue, or at least very similar, if I have a file, and change the lastModifiedDate or the exif attribute, and convert to uint8list bytes after that try to save that with this package, the metadata will always be the current time. Could you find any workaround?

I would like to save photo to gallery while preserving the exif, the modifiedDate value so it will be at the current position in the camera roll.