Skip to content

Instantly share code, notes, and snippets.

@Idered
Last active August 29, 2015 14:19
Show Gist options
  • Save Idered/c8d1719dd7f6e089cab8 to your computer and use it in GitHub Desktop.
Save Idered/c8d1719dd7f6e089cab8 to your computer and use it in GitHub Desktop.
Adobe Lightroom 6 wrong exif read
// This is part of exif reader which throws error
if (oFile.getLongAt(iTIFFOffset+4, bBigEnd) != 0x00000008) {
if (bDebug) console.log("Not valid TIFF data! (First offset not 8)", oFile.getShortAt(iTIFFOffset+4, bBigEnd));
return false;
}
array (size=54)
'FileName' => string 'P4220937.jpg' (length=12)
'FileDateTime' => int 1429865327
'FileSize' => int 7154757
'FileType' => int 2
'MimeType' => string 'image/jpeg' (length=10)
'SectionsFound' => string 'ANY_TAG, IFD0, THUMBNAIL, EXIF' (length=30)
'COMPUTED' =>
array (size=8)
'html' => string 'width="4288" height="3216"' (length=26)
'Height' => int 3216
'Width' => int 4288
'IsColor' => int 1
'ByteOrderMotorola' => int 0
'ApertureFNumber' => string 'f/3.5' (length=5)
'Thumbnail.FileType' => int 2
'Thumbnail.MimeType' => string 'image/jpeg' (length=10)
'ImageDescription' => string '' (length=1)
'Make' => string 'TAL CAMERA' (length=10)
'Model' => string 'AGING' (length=5)
'Orientation' => int 1
'XResolution' => string '1347571523/759496750' (length=20)
'YResolution' => string '13645/300' (length=9)
'ResolutionUnit' => int 2
'Software' => string '' (length=1)
'DateTime' => string '(Macintosh)' (length=11)
'Exif_IFD_Pointer' => int 252
'THUMBNAIL' =>
array (size=6)
'Compression' => int 6
'XResolution' => string '72/1' (length=4)
'YResolution' => string '72/1' (length=4)
'ResolutionUnit' => int 2
'JPEGInterchangeFormat' => int 984
'JPEGInterchangeFormatLength' => int 15293
'ExposureTime' => string '1/4000' (length=6)
'FNumber' => string '35/10' (length=5)
'ExposureProgram' => int 1
'ISOSpeedRatings' => int 200
'UndefinedTag:0x8830' => int 1
'ExifVersion' => string '0230' (length=4)
'DateTimeOriginal' => string '2015:04:22 18:18:14' (length=19)
'DateTimeDigitized' => string '2015:04:22 18:18:14' (length=19)
'ShutterSpeedValue' => string '11965784/1000000' (length=16)
'ApertureValue' => string '361471/100000' (length=13)
'ExposureBiasValue' => string '0/10' (length=4)
'MaxApertureValue' => string '434/256' (length=7)
'MeteringMode' => int 5
'LightSource' => int 0
'Flash' => int 8
'FocalLength' => string '45/1' (length=4)
'ColorSpace' => int 1
'FocalPlaneXResolution' => string '87196351/32768' (length=14)
'FocalPlaneYResolution' => string '87196351/32768' (length=14)
'FocalPlaneResolutionUnit' => int 3
'FileSource' => string '' (length=1)
'CFAPattern' => string '���' (length=8)
'CustomRendered' => int 0
'ExposureMode' => int 1
'WhiteBalance' => int 0
'DigitalZoomRatio' => string '100/100' (length=7)
'FocalLengthIn35mmFilm' => int 90
'SceneCaptureType' => int 0
'GainControl' => int 0
'Contrast' => int 0
'Saturation' => int 0
'Sharpness' => int 0
'UndefinedTag:0xA431' => string 'BF4521596' (length=9)
'UndefinedTag:0xA432' =>
array (size=4)
0 => string '45/1' (length=4)
1 => string '45/1' (length=4)
2 => string '18/10' (length=5)
3 => string '18/10' (length=5)
'UndefinedTag:0xA434' => string 'OLYMPUS M.45mm F1.8' (length=19)
'UndefinedTag:0xA435' => string 'ABM318812' (length=9)
array (size=61)
'FileName' => string 'P4220937-PS.jpg' (length=15)
'FileDateTime' => int 1429865667
'FileSize' => int 7212368
'FileType' => int 2
'MimeType' => string 'image/jpeg' (length=10)
'SectionsFound' => string 'ANY_TAG, IFD0, THUMBNAIL, EXIF' (length=30)
'COMPUTED' =>
array (size=9)
'html' => string 'width="4288" height="3216"' (length=26)
'Height' => int 3216
'Width' => int 4288
'IsColor' => int 1
'ByteOrderMotorola' => int 0
'CCDWidth' => string '16mm' (length=4)
'ApertureFNumber' => string 'f/3.5' (length=5)
'Thumbnail.FileType' => int 2
'Thumbnail.MimeType' => string 'image/jpeg' (length=10)
'ImageWidth' => int 4288
'ImageLength' => int 3216
'BitsPerSample' =>
array (size=3)
0 => int 8
1 => int 8
2 => int 8
'PhotometricInterpretation' => int 2
'ImageDescription' => string 'OLYMPUS DIGITAL CAMERA' (length=22)
'Make' => string 'OLYMPUS IMAGING CORP.' (length=21)
'Model' => string 'E-M5' (length=4)
'Orientation' => int 1
'SamplesPerPixel' => int 3
'XResolution' => string '3000000/10000' (length=13)
'YResolution' => string '3000000/10000' (length=13)
'ResolutionUnit' => int 2
'Software' => string 'Adobe Photoshop CC 2014 (Macintosh)' (length=35)
'DateTime' => string '2015:04:24 10:50:13' (length=19)
'Exif_IFD_Pointer' => int 324
'THUMBNAIL' =>
array (size=6)
'Compression' => int 6
'XResolution' => string '72/1' (length=4)
'YResolution' => string '72/1' (length=4)
'ResolutionUnit' => int 2
'JPEGInterchangeFormat' => int 1082
'JPEGInterchangeFormatLength' => int 6144
'ExposureTime' => string '1/4000' (length=6)
'FNumber' => string '35/10' (length=5)
'ExposureProgram' => int 1
'ISOSpeedRatings' => int 200
'UndefinedTag:0x8830' => int 1
'ExifVersion' => string '0230' (length=4)
'DateTimeOriginal' => string '2015:04:22 18:18:14' (length=19)
'DateTimeDigitized' => string '2015:04:22 18:18:14' (length=19)
'ShutterSpeedValue' => string '11965784/1000000' (length=16)
'ApertureValue' => string '361471/100000' (length=13)
'ExposureBiasValue' => string '0/10' (length=4)
'MaxApertureValue' => string '434/256' (length=7)
'MeteringMode' => int 5
'LightSource' => int 0
'Flash' => int 8
'FocalLength' => string '45/1' (length=4)
'ColorSpace' => int 1
'ExifImageWidth' => int 4288
'ExifImageLength' => int 3216
'FocalPlaneXResolution' => string '87196351/32768' (length=14)
'FocalPlaneYResolution' => string '87196351/32768' (length=14)
'FocalPlaneResolutionUnit' => int 3
'FileSource' => string '' (length=1)
'CFAPattern' => string '���' (length=8)
'CustomRendered' => int 0
'ExposureMode' => int 1
'WhiteBalance' => int 0
'DigitalZoomRatio' => string '100/100' (length=7)
'FocalLengthIn35mmFilm' => int 90
'SceneCaptureType' => int 0
'GainControl' => int 0
'Contrast' => int 0
'Saturation' => int 0
'Sharpness' => int 0
'UndefinedTag:0xA431' => string 'BF4521596' (length=9)
'UndefinedTag:0xA432' =>
array (size=4)
0 => string '45/1' (length=4)
1 => string '45/1' (length=4)
2 => string '18/10' (length=5)
3 => string '18/10' (length=5)
'UndefinedTag:0xA434' => string 'OLYMPUS M.45mm F1.8' (length=19)
'UndefinedTag:0xA435' => string 'ABM318812' (length=9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment