Note that there are some explanatory texts on larger screens.

plurals
  1. POread_exif_data & ApertureFNumber
    primarykey
    data
    text
    <p>I've recently come across the php function <code>exif_read_data</code> - which is pretty awesome. I'm using it on my photography site, and while it works pretty well, I'm struggling to work out why <code>ApertureFNumber</code> isn't working. The code I'm using is:</p> <pre><code>$exif_data = exif_read_data($image[0]); echo $exif_data['Model']; echo $exif_data['ExposureTime']; echo $exif_data['FNumber']; echo $exif_data['ApertureFNumber']; echo $exif_data['ISOSpeedRatings']; echo $exif_data['DateTime']; </code></pre> <p>(<em>styling removed)</em></p> <p>I used <code>FNumber</code> as well as <code>ApertureFNumber</code> for testing because <code>FNumber</code> works, while <code>ApertureFNumber</code>just returns blank. All the other fields work fine.</p> <p>I did a var_dump of $exif_data - and this is what I get (the abridged version):</p> <pre><code>["ApertureFNumber"]=&gt; string(5) "f/3.5" ["FNumber"]=&gt; string(5) "35/10" </code></pre> <p>What have I missed that <code>FNumber</code> works, but <code>ApertureFNumber</code> doesn't?</p> <p>--</p> <p>EDIT - Complete var_dump added as requested</p> <pre><code>array(52) { ["FileName"]=&gt; string(18) "MYD-67-900x602.jpg" ["FileDateTime"]=&gt; int(0) ["FileSize"]=&gt; int(123278) ["FileType"]=&gt; int(2) ["MimeType"]=&gt; string(10) "image/jpeg" ["SectionsFound"]=&gt; string(30) "ANY_TAG, IFD0, THUMBNAIL, EXIF" ["COMPUTED"]=&gt; array(9) { ["html"]=&gt; string(24) "width="900" height="602"" ["Height"]=&gt; int(602) ["Width"]=&gt; int(900) ["IsColor"]=&gt; int(1) ["ByteOrderMotorola"]=&gt; int(0) ["ApertureFNumber"]=&gt; string(5) "f/3.5" ["FocusDistance"]=&gt; string(14) "4294967296.00m" ["Thumbnail.FileType"]=&gt; int(2) ["Thumbnail.MimeType"]=&gt; string(10) "image/jpeg" } ["Make"]=&gt; string(17) "NIKON CORPORATION" ["Model"]=&gt; string(9) "NIKON D60" ["XResolution"]=&gt; string(5) "200/1" ["YResolution"]=&gt; string(5) "200/1" ["ResolutionUnit"]=&gt; int(2) ["Software"]=&gt; string(41) "Adobe Photoshop Lightroom 4.4 (Macintosh)" ["DateTime"]=&gt; string(19) "2013:07:06 10:07:40" ["Exif_IFD_Pointer"]=&gt; int(216) ["THUMBNAIL"]=&gt; array(6) { ["Compression"]=&gt; int(6) ["XResolution"]=&gt; string(5) "200/1" ["YResolution"]=&gt; string(5) "200/1" ["ResolutionUnit"]=&gt; int(2) ["JPEGInterchangeFormat"]=&gt; int(932) ["JPEGInterchangeFormatLength"]=&gt; int(8995) } ["ExposureTime"]=&gt; string(5) "1/800" ["FNumber"]=&gt; string(5) "35/10" ["ExposureProgram"]=&gt; int(1) ["ISOSpeedRatings"]=&gt; int(100) ["ExifVersion"]=&gt; string(4) "0230" ["DateTimeOriginal"]=&gt; string(19) "2008:10:30 16:04:34" ["DateTimeDigitized"]=&gt; string(19) "2008:10:30 16:04:34" ["ShutterSpeedValue"]=&gt; string(15) "9643856/1000000" ["ApertureValue"]=&gt; string(13) "361471/100000" ["ExposureBiasValue"]=&gt; string(3) "0/6" ["MaxApertureValue"]=&gt; string(5) "36/10" ["SubjectDistance"]=&gt; string(4) "-1/1" ["MeteringMode"]=&gt; int(5) ["LightSource"]=&gt; int(0) ["Flash"]=&gt; int(0) ["FocalLength"]=&gt; string(4) "18/1" ["SubSecTimeOriginal"]=&gt; string(2) "50" ["SubSecTimeDigitized"]=&gt; string(2) "50" ["SensingMethod"]=&gt; int(2) ["FileSource"]=&gt; string(1) "" ["SceneType"]=&gt; string(1) "" ["CFAPattern"]=&gt; string(8) "" ["CustomRendered"]=&gt; int(0) ["ExposureMode"]=&gt; int(1) ["WhiteBalance"]=&gt; int(0) ["DigitalZoomRatio"]=&gt; string(3) "1/1" ["FocalLengthIn35mmFilm"]=&gt; int(27) ["SceneCaptureType"]=&gt; int(0) ["GainControl"]=&gt; int(0) ["Contrast"]=&gt; int(0) ["Saturation"]=&gt; int(0) ["Sharpness"]=&gt; int(0) ["SubjectDistanceRange"]=&gt; int(0) ["UndefinedTag:0xA431"]=&gt; string(7) "6265825" ["UndefinedTag:0xA432"]=&gt; array(4) { [0]=&gt; string(4) "18/1" [1]=&gt; string(4) "55/1" [2]=&gt; string(5) "35/10" [3]=&gt; string(5) "56/10" } ["UndefinedTag:0xA434"]=&gt; string(22) "18.0-55.0 mm f/3.5-5.6" } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload