IOS8。照片应用程序错误?
<p><p>当我在 IOS8 的标准照片应用程序中使用滤镜时,我无法获得完整的元数据。
我尝试了两种获取元数据的方法:</p>
<pre><code>[manager requestImageDataForAsset:asset options:options resultHandler:^(NSData *imageData, NSString *dataUTI, UIImageOrientation orientation, NSDictionary *info) {
CIImage *ciimage = ;
NSMutableDictionary *exif = ;
;
}];
[asset requestContentEditingInputWithOptions:editOptions completionHandler:^(PHContentEditingInput *contentEditingInput, NSDictionary *info) {
CIImage *cimage = ;
NSMutableDictionary *exif = ;
;
}];
</code></pre>
<p>我没有发现任何关于应用程序照片的提及。我得到的总是这样的结果:</p>
<pre><code>{
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;
};
</code></pre>
<p>有没有人找到解决方案如何获取照片中已编辑图像的元数据?</p>
<p>我想看到这样的元数据:</p>
<p> <img src="https://farm4.staticflickr.com/3924/15210382339_9e6913dca9_b.jpg" alt="link"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我找到了获取原始元数据的方法:</p>
<pre><code>PHImageRequestOptions *options = ;
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 = ;
NSMutableDictionary *exif = ;
;
}];
</code></pre></p>
<p style="font-size: 20px;">关于IOS8。照片应用程序错误?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/26099830/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/26099830/
</a>
</p>
页:
[1]