Skip to content
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

Add optional copying of Exif metadata to the output image / base64 data #1736

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mjmasn
Copy link

@mjmasn mjmasn commented Feb 9, 2022

Not sure if this project is accepting PRs but thought it was worth sharing some changes @soupjake and I had worked on to support copying Exif metadata to the output of this library.

Happy to make any changes necessary, I'm not much of an iOS developer so would be good for someone who knows what they're doing to give this a once over.

One caveat is that this doesn't work for cropped images on iOS (we didn't dig further into that as we're not using cropping ourselves)

mjmasn and others added 4 commits February 9, 2022 10:37
- Switch to androidx for back compatibility with older android versions
- Include all supported Exif tags
- Add copyExif parameter to copy Exif data to output image
- Ensure orientation/size are correct for output image
- Get base64 data _after_ output image is generated so that it contains correct Exif data

Co-authored-by: Jake Gough <super.jake@hotmail.co.uk>
- Rename exif to metadata (avoid confusion with actual 'Exif' key of metadata)
- Add copyExif parameter to copy Exif data to output image
- Ensure orientation/size are correct for output image
- Get metadata before compressing image

Co-authored-by: Jake Gough <super.jake@hotmail.co.uk>
Co-authored-by: Jake Gough <super.jake@hotmail.co.uk>
@tomgreco
Copy link

tomgreco commented Mar 6, 2022

@ivpusic can we get this merged, super helpful feature!

@tomgreco
Copy link

tomgreco commented Mar 6, 2022

@mjmasn should update README with the new copyExif property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants