iOS8上。照片应用程序bug? [英] IOS8. Photos application bug?

查看:152
本文介绍了iOS8上。照片应用程序bug?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IOS8中的标准照片应用程序中使用过滤器时,我无法获得完整的元数据。
我尝试两种方法获取元数据:

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:

PHImageRequestOptions *options = [PHImageRequestOptions new];
options.networkAccessAllowed = YES;
options.synchronous = YES;
options.version = PHImageRequestOptionsVersionOriginal;

[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];
}];

这篇关于iOS8上。照片应用程序bug?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆