How in C# to know the Height and Width of jpg image on disk? which file properties such as specified?

Preferably without the dll if it is possible such
June 3rd 19 at 20:58
3 answers
June 3rd 19 at 21:00
...for free and without SMS. Open specification format, watch field, which contains the required information, read these fields.
I found the options through Drawing.dll while only.
Your method in any namespace at least look? - sarina_La commented on June 3rd 19 at 21:03
BinaryReader from System.IO as an option - Clarabelle12 commented on June 3rd 19 at 21:06
June 3rd 19 at 21:02
Image. From file then read the width and height. But, you may have to cast a image in bitmap (I don't remember exactly).
If it's stupid forehead. But if you are clever, you really read the specification, find the number of the bytes that describe the dimensions and read from a file.
June 3rd 19 at 21:04
Well, or take written already: metadata-extractor-dotnet.

Find more questions by tags C#