Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Missing image metadata(EXIF, TIFF, GPS ) when trying to pick multiple photos on IOS #747

Closed
dmitrevski opened this issue Oct 2, 2019 · 7 comments · Fixed by #792
Closed

Comments

@dmitrevski
Copy link

Metadata is missing when trying to pick multiple photos on IOS. For multiple photos I saw that you are using GetPictureMediaFile from ELCImagePickerViewController but GetPictureMediaFile doesn't import MetaData from the original photo

@ManbirSinghRakhra
Copy link
Contributor

@jamesmontemagno
We are experiencing this issue also.

@clintonrocksmith
Copy link

This is happening with iOS13.2 for us

@ManbirSinghRakhra
Copy link
Contributor

ManbirSinghRakhra commented Nov 4, 2019

@jamesmontemagno and @clintonrocksmith -> @jamesmontemagno I have found the solution for this. I have provided part of my test program where I have used CiContext

using (var ciImage = CIImage.FromData(UIImage.FromFile(newFilePath).AsJPEG())) {
using (var newImageSource = ciImage.CreateBySettingProperties(originalMetaData.Dictionary)) {
             using (var ciContext = new CIContext()) {
                        var saveSuccessful = ciContext.WriteJpegRepresentation(newImageSource, NSUrl.FromFilename(newFilePath),
                            CGColorSpace.CreateSrgb(),
                            new NSDictionary(), out var error);
                    }
}
}

@jamesmontemagno If you can fix the metadata issue for iOS 13.2 using above method or any better method, that will be good.

Maybe try using ciContext for saving metadata copied from the original photos. CiContext has capability to save all types of image formats.

We really need iOS 13.2 images alongwith MetaData.

Can you fix meta data for me? This is effecting my clients.``

@michalhoblik
Copy link

Same thing happening with iOS 13.2 in our app. No EXIF data saved.

@dhewitson
Copy link

Similar problem here with iOS 13.2 and plugin version 4.0.1.5
EXIF Data is missing on images saved using the plugin.

@MatthewKapteyn
Copy link

@ManbirSinghRakhra you're a lifesaver, your code fixes this issue

#760

@jamesmontemagno
Copy link
Owner

@ManbirSinghRakhra and @MatthewKapteyn I owe you both some $$$ for the bounty can you email me?

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

Successfully merging a pull request may close this issue.

7 participants