/**
  * This does the photoshop image resource app13 block
  * of interest, IPTC-IIM metadata is stored here.
  *
  * Mostly just calls doPSIR and doIPTC
  *
  * @param string $app13 String containing app13 block from jpeg file
  */
 private function doApp13($app13)
 {
     try {
         $this->iptcType = JpegMetadataExtractor::doPSIR($app13);
     } catch (MWException $e) {
         // Error reading the iptc hash information.
         // This probably means the App13 segment is something other than what we expect.
         // However, still try to read it, and treat it as if the hash didn't exist.
         wfDebug("Error parsing iptc data of file: " . $e->getMessage() . "\n");
         $this->iptcType = 'iptc-no-hash';
     }
     $iptc = IPTC::parse($app13);
     $this->addMetadata($iptc, $this->iptcType);
 }
 /**
  * This does the photoshop image resource app13 block
  * of interest, IPTC-IIM metadata is stored here.
  *
  * Mostly just calls doPSIR and doIPTC
  *
  * @param String $app13 String containing app13 block from jpeg file
  */
 private function doApp13($app13)
 {
     $this->iptcType = JpegMetadataExtractor::doPSIR($app13);
     $iptc = IPTC::parse($app13);
     $this->addMetadata($iptc, $this->iptcType);
 }