2

Given a jpeg file (at some url)

How can I get the header info of that jpeg? specifically the height and with of it? I dont want to download the whole file to memory, just get header info to determine height and width.

Thanks

raklos
  • 28,027
  • 60
  • 183
  • 301
  • See: http://stackoverflow.com/questions/1781272/c-get-width-height-of-image-on-web-without-downloading-whole-file – Adrian Fâciu Jan 07 '11 at 16:11
  • Possible duplicate of [C# get width/height of image on web without downloading whole file?](http://stackoverflow.com/questions/1781272/c-sharp-get-width-height-of-image-on-web-without-downloading-whole-file) – gunr2171 Jan 08 '17 at 15:17

1 Answers1

1

In addition to the SO link in the comment above, you may want to check out this CodeProject article. Admittedly, it is a little older, but probably gives you the information you need.

Be sure to read the comments at the bottom of the article.

Wonko the Sane
  • 10,623
  • 8
  • 67
  • 92