title: Get list of image files with specific dimensions as file objects using PowerShell
body: <p>Following on closely from this <a href="https://stackoverflow.com/questions/2957828/smart-image-search-via-powershell">Smart image search via Powershell</a></p>
  
  <p>I have the following PowerShell script:-</p>
  
  <pre><code>Add-Type -Assembly System.Drawing
  
  function Get-Image {
      $input | ForEach-Object { [Drawing.Image]::FromFile($_.FullName) }
  }
  
  Get-ChildItem -Path 'C:\Images' -Filter *.jpg -Recurse | Get-Image | ? { $_.Width -gt 1280 -or $_.Height -gt 1280 }
  </code></pre>
  
  <p>Problem is, this returns me a list of Image objects.</p>
  
  <p>I basically want a list of file objects (which ultimately will be images) with a width OR height greater than 1280 pixels.</p>
  
  <p>I need to somehow convert the image object back to a file object ?</p>
  
  <p>The ultimatum is a list of filenames which are larger than 1280 pixels.</p>