No-Library (pure JS), HTML, CSS, JavaScript
In this fiddle, we can see how we give a floated DIV 100% height of its parent.
This Fiddle fills a IMG inside a DIV, without using it as background-image, without white-spaces, retaining aspect ratio and scaling it.