2009年8月23日日曜日

iPhoneで撮影した写真のExifデータについて

PHPの関数を利用し、iPhoneで撮影した写真のExifデータについて調査した。

"カメラ"は現在の位置情報を利用しますよろしいですか?→許可しない


[0] => FileName
[1] => FileDateTime
[2] => FileSize
[3] => FileType
[4] => MimeType
[5] => SectionsFound
[6] => COMPUTED
[7] => Make
[8] => Model
[9] => Orientation
[10] => XResolution
[11] => YResolution
[12] => ResolutionUnit
[13] => DateTime
[14] => YCbCrPositioning
[15] => Exif_IFD_Pointer
[16] => THUMBNAIL
[17] => ExposureTime
[18] => FNumber
[19] => ISOSpeedRatings
[20] => ExifVersion
[21] => DateTimeOriginal
[22] => DateTimeDigitized
[23] => ComponentsConfiguration
[24] => FocalLength
[25] => UserComment
[26] => FlashPixVersion
[27] => ColorSpace
[28] => ExifImageWidth
[29] => ExifImageLength
[30] => Sharpness

[FileName] => IMG_0019.jpg
[FileDateTime] => 1250958039
[FileSize] => 1033692
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF
[COMPUTED] => Array
(
[html] => width="2048" height="1536"
[Height] => 1536
[Width] => 2048
[IsColor] => 1
[ByteOrderMotorola] => 1
[ApertureFNumber] => f/2.8
[UserComment] => {
AEAverage = 194;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 1;
AGC = 257;
AWBBGain = 157;
AWBGGain = 64;
AWBRGain = 175;
AWBStable = 1;
AccelerometerDeltas = "(0.0328 0.0460 0.0375) @ 0.0200";
ApertureValue = 3;
BrightnessValue = 3.62343664588204;
CurrentFocusPosition = 1;
ExposureBias = 0;
ExposureTime = 0.03333328695652174;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "22.69 in [0.00, 0.00]";
FocusMode = 1;
FocusPeakSumArray = (
52971,
53927,
54679,
55485,
133586
);
FocusScan = "(0,41.03) (29,44.86) (56,38.76) (81,32.17) 40.7s ago";
FocusScoresArray = (
1027972,
1064337,
1091574,
1125079,
3958325
);
FocusWindow = "350/300 300x400";
FullyExposed = 1;
ISOSpeedRating = 70;
NoiseReduction = "S:4 C:8 Y:0";
OneFrameAEMode = 0;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "27.67 in [0.00, 0.00]";
PreviousFocusScan = "(0,19.72) (29,22.01) (56,19.61) (81,26.14) (105,19.83) (127,20.71) (149,13.58) (169,13.23) 42.3s ago";
SNR = 36;
SensorID = 13904;
Sharpness = 9;
ShutterSpeedValue = 4.906892602837797;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:07:01 17:42:54";
DateTimeOriginal = "2009:07:01 17:42:54";
ExposureTime = 0.03333333333333333;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
70
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 1;
};
"{TIFF}" = {
DateTime = "2009:07:01 17:42:54";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[UserCommentEncoding] => ASCII
[Thumbnail.FileType] => 2
[Thumbnail.MimeType] => image/jpeg
)

[Make] => Apple
[Model] => iPhone
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[DateTime] => 2009:07:01 17:42:54
[YCbCrPositioning] => 1
[Exif_IFD_Pointer] => 172
[THUMBNAIL] => Array
(
[Compression] => 6
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 2422
[JPEGInterchangeFormatLength] => 7565
)

[ExposureTime] => 1/30
[FNumber] => 14/5
[ISOSpeedRatings] => 70
[ExifVersion] => 0221
[DateTimeOriginal] => 2009:07:01 17:42:54
[DateTimeDigitized] => 2009:07:01 17:42:54
[ComponentsConfiguration] => ?
[FocalLength] => 77/20
[UserComment] => ASCII???{
AEAverage = 194;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 1;
AGC = 257;
AWBBGain = 157;
AWBGGain = 64;
AWBRGain = 175;
AWBStable = 1;
AccelerometerDeltas = "(0.0328 0.0460 0.0375) @ 0.0200";
ApertureValue = 3;
BrightnessValue = 3.62343664588204;
CurrentFocusPosition = 1;
ExposureBias = 0;
ExposureTime = 0.03333328695652174;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "22.69 in [0.00, 0.00]";
FocusMode = 1;
FocusPeakSumArray = (
52971,
53927,
54679,
55485,
133586
);
FocusScan = "(0,41.03) (29,44.86) (56,38.76) (81,32.17) 40.7s ago";
FocusScoresArray = (
1027972,
1064337,
1091574,
1125079,
3958325
);
FocusWindow = "350/300 300x400";
FullyExposed = 1;
ISOSpeedRating = 70;
NoiseReduction = "S:4 C:8 Y:0";
OneFrameAEMode = 0;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "27.67 in [0.00, 0.00]";
PreviousFocusScan = "(0,19.72) (29,22.01) (56,19.61) (81,26.14) (105,19.83) (127,20.71) (149,13.58) (169,13.23) 42.3s ago";
SNR = 36;
SensorID = 13904;
Sharpness = 9;
ShutterSpeedValue = 4.906892602837797;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:07:01 17:42:54";
DateTimeOriginal = "2009:07:01 17:42:54";
ExposureTime = 0.03333333333333333;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
70
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 1;
};
"{TIFF}" = {
DateTime = "2009:07:01 17:42:54";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[FlashPixVersion] => 0100
[ColorSpace] => 1
[ExifImageWidth] => 2048
[ExifImageLength] => 1536
[Sharpness] => 1

"カメラ"は現在の位置情報を利用しますよろしいですか?→許可する


[0] => FileName
[1] => FileDateTime
[2] => FileSize
[3] => FileType
[4] => MimeType
[5] => SectionsFound
[6] => COMPUTED
[7] => Make
[8] => Model
[9] => Orientation
[10] => XResolution
[11] => YResolution
[12] => ResolutionUnit
[13] => DateTime
[14] => YCbCrPositioning
[15] => Exif_IFD_Pointer
[16] => GPS_IFD_Pointer
[17] => THUMBNAIL
[18] => ExposureTime
[19] => FNumber
[20] => ISOSpeedRatings
[21] => ExifVersion
[22] => DateTimeOriginal
[23] => DateTimeDigitized
[24] => ComponentsConfiguration
[25] => FocalLength
[26] => UserComment
[27] => FlashPixVersion
[28] => ColorSpace
[29] => ExifImageWidth
[30] => ExifImageLength
[31] => Sharpness
[32] => GPSLatitudeRef
[33] => GPSLatitude
[34] => GPSLongitudeRef
[35] => GPSLongitude
[36] => GPSTimeStamp
[37] => GPSImgDirectionRef
[38] => GPSImgDirection

[FileName] => IMG_0071.jpg
[FileDateTime] => 1250957731
[FileSize] => 1359931
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, GPS
[COMPUTED] => Array
(
[html] => width="2048" height="1536"
[Height] => 1536
[Width] => 2048
[IsColor] => 1
[ByteOrderMotorola] => 1
[ApertureFNumber] => f/2.8
[UserComment] => {
AEAverage = 203;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 4;
AGC = 2108;
AWBBGain = 208;
AWBGGain = 64;
AWBRGain = 123;
AWBStable = 1;
AccelerometerDeltas = "(0.0045 0.0106 0.0044) @ 0.0200";
ApertureValue = 3;
BrightnessValue = -0.929769668175927;
CurrentFocusPosition = 236;
ExposureBias = 0;
ExposureTime = 0.09983587826086956;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "7.69 in [7.19, 8.64]";
FocusMode = 0;
FocusPeakSumArray = (
15806,
16159,
16533,
16952,
68071
);
FocusScan = "(0,6.79) (34,6.67) (66,6.78) (95,6.61) (123,6.73) (149,6.78) (173,7.19) (195,7.65) (216,7.57) (236,7.71) (255,7.31) 2.2s ago";
FocusScoresArray = (
214043,
223806,
233388,
248338,
2862029
);
FocusWindow = "401/571 188x250";
FullyExposed = 0;
ISOSpeedRating = 605;
NoiseReduction = "S:22 C:12 Y:4";
OneFrameAEMode = 1;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "13.54 in [15.11, 18.04]";
PreviousFocusScan = "(0,13.82) (29,13.96) (56,13.91) (81,13.97) (105,13.90) (127,13.43) (149,14.08) (169,15.40) (188,15.84) (206,15.80) (223,16.17) (239,15.52) (255,14.33) 4.2s ago";
SNR = 23.27476625931243;
SensorID = 13904;
Sharpness = 7;
ShutterSpeedValue = 3.324297816225114;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:08:23 00:47:17";
DateTimeOriginal = "2009:08:23 00:47:17";
ExposureTime = 0.1;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
605
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 0;
};
"{TIFF}" = {
DateTime = "2009:08:23 00:47:17";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[UserCommentEncoding] => ASCII
[Thumbnail.FileType] => 2
[Thumbnail.MimeType] => image/jpeg
)

[Make] => Apple
[Model] => iPhone
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[DateTime] => 2009:08:23 00:47:17
[YCbCrPositioning] => 1
[Exif_IFD_Pointer] => 184
[GPS_IFD_Pointer] => 2462
[THUMBNAIL] => Array
(
[Compression] => 6
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 2738
[JPEGInterchangeFormatLength] => 6306
)

[ExposureTime] => 1/10
[FNumber] => 14/5
[ISOSpeedRatings] => 605
[ExifVersion] => 0221
[DateTimeOriginal] => 2009:08:23 00:47:17
[DateTimeDigitized] => 2009:08:23 00:47:17
[ComponentsConfiguration] => ?
[FocalLength] => 77/20
[UserComment] => ASCII???{
AEAverage = 203;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 4;
AGC = 2108;
AWBBGain = 208;
AWBGGain = 64;
AWBRGain = 123;
AWBStable = 1;
AccelerometerDeltas = "(0.0045 0.0106 0.0044) @ 0.0200";
ApertureValue = 3;
BrightnessValue = -0.929769668175927;
CurrentFocusPosition = 236;
ExposureBias = 0;
ExposureTime = 0.09983587826086956;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "7.69 in [7.19, 8.64]";
FocusMode = 0;
FocusPeakSumArray = (
15806,
16159,
16533,
16952,
68071
);
FocusScan = "(0,6.79) (34,6.67) (66,6.78) (95,6.61) (123,6.73) (149,6.78) (173,7.19) (195,7.65) (216,7.57) (236,7.71) (255,7.31) 2.2s ago";
FocusScoresArray = (
214043,
223806,
233388,
248338,
2862029
);
FocusWindow = "401/571 188x250";
FullyExposed = 0;
ISOSpeedRating = 605;
NoiseReduction = "S:22 C:12 Y:4";
OneFrameAEMode = 1;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "13.54 in [15.11, 18.04]";
PreviousFocusScan = "(0,13.82) (29,13.96) (56,13.91) (81,13.97) (105,13.90) (127,13.43) (149,14.08) (169,15.40) (188,15.84) (206,15.80) (223,16.17) (239,15.52) (255,14.33) 4.2s ago";
SNR = 23.27476625931243;
SensorID = 13904;
Sharpness = 7;
ShutterSpeedValue = 3.324297816225114;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:08:23 00:47:17";
DateTimeOriginal = "2009:08:23 00:47:17";
ExposureTime = 0.1;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
605
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 0;
};
"{TIFF}" = {
DateTime = "2009:08:23 00:47:17";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[FlashPixVersion] => 0100
[ColorSpace] => 1
[ExifImageWidth] => 2048
[ExifImageLength] => 1536
[Sharpness] => 0
[GPSLatitudeRef] => N
[GPSLatitude] => Array
(
[0] => 35/1
[1] => 1829/100
[2] => 0/1
)

[GPSLongitudeRef] => E
[GPSLongitude] => Array
(
[0] => 136/1
[1] => 4693/100
[2] => 0/1
)

[GPSTimeStamp] => Array
(
[0] => 0/1
[1] => 46/1
[2] => 5030/100
)

[GPSImgDirectionRef] => T
[GPSImgDirection] => 3391/581

愛知県 名古屋市 35°11′N 136°54′E らしいのでそこから推測するに、
このデータから緯度35 18.29 0 経度136 46.93 0となった。果たして計算は合っているのか。

緯度経度を取得
こちらに入力してみたがずれている。

今回の目的はiPhoneで撮影した画像に位置情報が付与されているか確認する為であり、目的が果たせた。以前(5年前)はPHPでExif関数を用いて全ての要素を出力する事が出来なかったので大きな収穫であった。

0 件のコメント:

コメントを投稿