When I use filters in standard Photos application in IOS8, I can't get full metadata. I try two methods fetch metadata:
[manager requestImageDataForAsset:asset options:options resultHandler:^(NSData *imageData, NSString *dataUTI, UIImageOrientation orientation, NSDictionary *info) {
CIImage *ciimage = [CIImage imageWithData:imageData];
NSMutableDictionary *exif = [NSMutableDictionary dictionary];
[exif addEntriesFromDictionary:ciimage.properties];
}];
[asset requestContentEditingInputWithOptions:editOptions completionHandler:^(PHContentEditingInput *contentEditingInput, NSDictionary *info) {
CIImage *cimage = [CIImage imageWithContentsOfURL:contentEditingInput.fullSizeImageURL];
NSMutableDictionary *exif = [NSMutableDictionary dictionary];
[exif addEntriesFromDictionary:cimage.properties];
}];
I have not found any mention to the application Photos. I get such a result is always:
{
ColorModel = RGB;
DPIHeight = 72;
DPIWidth = 72;
Depth = 8;
Orientation = 1;
PixelHeight = 2592;
PixelWidth = 1936;
"{Exif}" = {
ColorSpace = 1;
PixelXDimension = 1936;
PixelYDimension = 2592;
};
"{JFIF}" = {
DensityUnit = 1;
JFIFVersion = (
1,
0,
1
);
XDensity = 72;
YDensity = 72;
};
"{TIFF}" = {
Orientation = 1;
};
Has anyone found a solution how to get the metadata of the images that have been edited in Photos?
I want see metadata like this:
I found how fetch original metadata:
It's so strange.
Use the code above ,the metaData is just not complicated . And then..
Here I can get fully metadata...I think it is one bug of Photos.framework
I have tried the EXACT same code as well as every other alternative mechanism to retrieve the original image data from Photo app in the XCode IOS 8 simulator and the only thing that comes back for any image I in photo app under the simulator is virtually empty EXIF -- pretty much the same stuff illustrated in the original question.
Here's the question: Is this isolated to ONLY the simulator? Is there an issue with adding images to Photo app in the simulator via drag and drop?
and this
and this
all produce the same results in the XCode IOS simulator for 8.0/8.1.
Does your code work for the simulator? It appears to be the same as the second sample I provided that does not.
You can get creation date, modification date from properties of PHAsset. PHAsset properties