ios에서 이미지의 많은 메타 데이터를 추출하기 위해 ios CGImageSourceCopyPropertiesAtIndex를 사용하고 있습니다. 하지만 Mac Preview App 또는 exiftool 명령에 표시된 것과 같은 모든 메타 데이터를 추출 할 수는 없습니다.메타 데이터에서 이미지 그림 스타일 추출하기
대부분 "픽쳐 스타일"및 "캐논"정보가 누락되었습니다.
NSURL *imageFileURL = [NSURL fileURLWithPath:filePath];
CGImageSourceRef imageSource = CGImageSourceCreateWithURL((CFURLRef)CFBridgingRetain(imageFileURL), NULL);
CFDictionaryRef props = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);
NSLog(@"%@", props);
누구나 힌트를 가지고 :
나는 메타 데이터를 읽고 있어요 어떻게? kCGImagePropertyMakerCanonDictionary
, kCGImagePropertyExifAuxDictionary
및 kCGImagePropertyTIFFDictionary
이 CGImageSourceCopyPropertiesAtIndex
이해 옵션이 아니라는 것을
2013-04-02 09:50:06.885 i2[67169:1f0f] {
ColorModel = RGB;
DPIHeight = 72;
DPIWidth = 72;
Depth = 8;
Orientation = 1;
PixelHeight = 1728;
PixelWidth = 2592;
"{Exif}" = {
ApertureValue = "5.375";
BodySerialNumber = 1280809746;
ColorSpace = 1;
ComponentsConfiguration = (
1,
2,
3,
0
);
CustomRendered = 0;
DateTimeDigitized = "2012:12:24 12:58:46";
DateTimeOriginal = "2012:12:24 12:58:46";
ExifVersion = (
2,
3
);
ExposureBiasValue = 0;
ExposureMode = 1;
ExposureProgram = 1;
ExposureTime = "0.003125";
FNumber = "6.3";
Flash = 16;
FlashPixVersion = (
1,
0
);
FocalLength = 22;
FocalPlaneResolutionUnit = 2;
FocalPlaneXResolution = "2857.773";
FocalPlaneYResolution = "2904.202";
ISOSpeedRatings = (
3200
);
LensModel = "EF-S10-22mm f/3.5-4.5 USM";
LensSpecification = (
10,
22,
0,
0
);
MeteringMode = 5;
PixelXDimension = 2592;
PixelYDimension = 1728;
SceneCaptureType = 0;
ShutterSpeedValue = "8.375";
SubsecTime = 35;
SubsecTimeDigitized = 35;
SubsecTimeOriginal = 35;
WhiteBalance = 1;
};
"{IPTC}" = {
StarRating = 0;
};
"{TIFF}" = {
DateTime = "2012:12:24 12:58:46";
Make = Canon;
Model = "Canon EOS 7D";
Orientation = 1;
ResolutionUnit = 2;
XResolution = 72;
YResolution = 72;
"_YCbCrPositioning" = 2;
};
}
이 데이터를 사용하고있는 것이 확실하지 않지만 이미지에 메타 데이터 또는 exif 데이터가 포함되지 않을 수도 있습니다. 표준이 아니 어서 모든 이미지가 다를 수 있습니다. – Tim
외부 카메라로 촬영 한 사진의 정보를 추출하려고합니다. 데스크톱 프로그램에서이를 수행 할 때 CGImageSourceRef를 사용할 때보 다 많은 정보를 사용할 수 있습니다. 기존 라이브러리를 사용하여 더 많은 정보를 얻을 수 있는지 궁금합니다. – stoffer