title: Finding keywords in image data
body: <p>I kinda ran into a problem, I'm working on a small image site for a photographer, the photographer uses photoshop to store information into the image.<br>
  Information such as image data, location, descriptions, ...</p>
  
  <p>He's been doing this since CS3.</p>
  
  <p>When user uploads a picture to the site, he wants everything to go automatically, so I was trying to read out all the keywords, like this:</p>
  
  <pre><code>$size = getimagesize($path, $info);
  if(isset($info['APP13'])) {
      $iptc = iptcparse($info['APP13']);
  
      if(isset($iptc['2#025'])) {
          $tagsArr = $iptc['2#025'];
      } else {
           $tagsArr = array();
      }
  }
  </code></pre>
  
  <p>This all works fine for images saved in CS5, but for images saved in CS3 it fails, even though I'm 100% sure the keywords are in there.</p>
  
  <p>To give an example:<br>
  This one fails - <a href="http://woutr.be/naturalight/uploads/ea568fea3e7eb1448d30fb823f477aac.jpg" rel="nofollow">http://woutr.be/naturalight/uploads/ea568fea3e7eb1448d30fb823f477aac.jpg</a><br>
  This one works - <a href="http://woutr.be/naturalight/uploads/e3f2e6db833803a77eb75aae16e8c8ec.jpg" rel="nofollow">http://woutr.be/naturalight/uploads/e3f2e6db833803a77eb75aae16e8c8ec.jpg</a></p>
  
  <p>I've been looking into this for a few days, but I can't figure out why this doesn't work for some images.</p>