title: How to hash only image data in a jpg file with dotnet?
body: <p>I have a ~20000 jpg images, some of which are duplicates. Unfortunately, some files have been been tagged with EXIF metadata, so a simple file hash cannot identify the duplicated one.</p>
  
  <p>I am attempting to create a Powershell script to process these, but can find no way to extract only the bitmap data.</p>
  
  <p>The system.drawing.bitmap can only return a bitmap object, not bytes. There's a GetHash() function, but it apparently acts on the whole file.</p>
  
  <p>How can I hash these files in a way that the EXIF information is excluded? I'd prefer to avoid external dependencies if possible. </p>