title: Image::ExifTool 'Don't understand ImageInfo argument'
body: <p>Like the title says, Image::ExifTool ImageInfo() does not understand my argument. Why?</p>
  
  <pre><code>if ( $form-&gt;submitted_and_valid ) {
  
  my $photo = $c-&gt;model('DB::Photos')-&gt;create(
      {
          name     =&gt; $form-&gt;param('photo_name'),
          path     =&gt; $c-&gt;req-&gt;upload('photo')-&gt;fh,
          caption  =&gt; $form-&gt;param('caption'),
          uploaded =&gt; DateTime-&gt;now,
          mime =&gt; $mime-&gt;mimeTypeOf( $c-&gt;req-&gt;upload('photo')-&gt;basename ),
      }
  );
  
  $c-&gt;stash-&gt;{status_msg} = "Successfully uploaded!";
  $c-&gt;stash-&gt;{photo}      = $photo;
  $c-&gt;detach;
  </code></pre>
  
  <p>... Further on down, I grab the $photo object from the catalyst stash</p>
  
  <pre><code>my $data = $photo-&gt;path-&gt;open('r') or die;
  my $exif = new Image::ExifTool;
  my $info = $exif-&gt;ImageInfo($data) # &lt;- this should be a ref to an open image file
  </code></pre>
  
  <p>Where is the issue here? This is a catalyst application, I am trying to get the exif_orientation of the file so I can rotate it if need be to display it appropriately on the webpage. But, I can not for the life of me get the exif information on the image file. </p>
  
  <p>here is the path to the file. Yes, this file exist! I can display it on the webpage using this path.</p>
  
  <pre><code>/usr/local/docs/www.test.com/public/myapp/root/static/photos/52/52A1F1BC-0281-11E7-A32D-B12F1463937A
  </code></pre>
  
  <p>I have also checked using an external tool that the images i am using do indeed contain exif information.</p>