title: Auto-resize image to fit the browser
body: <p>I have a site which provides "random" pictures of different dimensions, some if not most pictures happen to not fit the browser, so I'd like to know a way to resize it to fit the browser view without scrolling, so why not the guys of Stack Overflow!</p>
  
  <p>Obviously keeping proportions, I tried <a href="https://github.com/gutierrezalex/photo-resize/" rel="nofollow">https://github.com/gutierrezalex/photo-resize/</a> but didn't work as expected.<br>
  So it's a html page with some text, the image in the middle and some other text under it.<br>
  All I want is for scrolling to be not able to use since the image should be shrunk enough to do so.</p>