Fitting picture into div
<p>I am facing problem with fitting picture into div. Basically divs are the cards headers. Pictures are in different orientation and also size. What should I do to fit them in ?</p>

<p><a href="http://i.stack.imgur.com/7Ebju.jpg" rel="nofollow">Photo in div</a></p>