-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Using ImageEditor removes images Metadata #4183
Comments
@fluxthedev we welcome PRs, no need to assign the ticket. How do you plan to implement this, extract metadata before editing, then apply it back? |
@arturi thanks for the info. I'm not 100% sure yet on the implementation until I can replicate the problem. So I'll get back to you on that. |
@arturi Still looking into this. I'll be completely honest, I'm struggling to get it set up on AWS, so I'll try one of the other methods. I'm very knowledgeable with react / node, but my experience with AWS isn't great. I'll keep digging. |
I finally got S3 bucket / local Uppy setup and successfully uploaded it to S3. I used exiftool on my MacBook to compare the metadata before and after the upload through Uppy. I used the ImageEditor plugin with the following settings: .use(ImageEditor, {
quality: 0.8,
cropperOptions: {
viewMode: 1,
background: false,
autoCropArea: 1,
responsive: true,
},
}); Here is the console output using exiftool before and after I uploaded it. I observed that the metadata does in fact stay. @arturi I'm not convinced yet that there isn't a problem. I will run tests on different images with a variety of metadata using the exact metadata extraction tool (exiv2) that was mentioned in the original post. Will report back sometime this weekend. |
@arturi I did another test just now using exiv2 to extract the metadata of this exif test sample and confirmed the data was not stripped using the same ImageEditor parameters I used in my previous post. Here's the txt files of the extraction. They are the same. Let me know if you need anything else from me to close this issue. Thanks for all your good work! |
Thanks for the checks, @fluxthedev! |
@thommor, could you tell us what metadata you were missing? |
@lakesare Hello! I don't recall if I manually edited the image using the imageEditor UI, so I'll do that. As far as the image editor config and other settings,yes that's all I added. Looking back I'm thinking the images weren't actually modified by uppy. The quality should of 0.8 should of at least changed the file size a bit for the jpg I uploaded. I'll make sure I make an edit in the UI and try multiple modifications, as it could be just one piece of functionality, or no issue anymore. Stay tuned! |
@fluxthedev, thank you!
So, this happens after we edit the image and press SAVE. I recently had to readd the filename to the blob (using the |
Hi, thanks for people looking into this. As I recall it was directly editing the image that appeared to strip the metadata out as is mentioned above. If I recall correctly most (if not all) metadata was removed but would have to run the tests again to check |
I suspect this might be happening because we add So, this PR, once merged, might fix it #4926. @fluxthedev, if you will be checking this, then please check it both before PR #4926 and after PR #4926 (to see if we had this issue before this PR, and to see if this PR did fix the issue). |
Fix is released. Let us know if the problem still occurs. |
Initial checklist
Link to runnable example
No response
Steps to reproduce
Expected behavior
Ideally when modifying an image using the ImageEditor plugin, the metadata from the initial image should be maintained in the altered image. This would allow systems using Uppy to extract this metadata as required.
Actual behavior
No metadata is stored with the altered image when uploaded
The text was updated successfully, but these errors were encountered: