-
Notifications
You must be signed in to change notification settings - Fork 6
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
Adding exif to files downloaded using reqwest and saved from bytes does not work. #53
Comments
Hi, thanks for the issue! Could you please provide me with some example data to reproduce this? Ideally this would be the data as bytes that you are writing in |
Thanks for your quick reply, here is a full demo to easily copy/paste to replicate the problem cargo :
code :
|
As far as I can tell this has to do something with the async write operation. Replacing
with
(and adding |
When reading or writing metadata from files using this code
A panic and following error occurs:
I managed to bypass this by converting the bytes to an image first :
Also I would like to note that "
Metadata::new_from_path
" does not work in both cases, and files saved as bytes seems to be working fine in all apps.Please ignore all the unwraps/async and mix of stdio/async_std.
The text was updated successfully, but these errors were encountered: