Search code examples
c#windowsfilefile-properties

Read extended image properties in c#


I would like to find the height/width of an image on disk without opening it, if possible (for performance reasons).

The Windows properties pane for images contains information like width, height, bit depth, etc., which leads me to believe that it is storing metadata on the file somewhere. How can I access this information?


Solution

  • There are some stackoverflow questions on how to read the EXIF information from images, such as: How to get the EXIF data from a file using C#