I used this code to retrieve and keep the ratio of an image:
<img class="r r-2x img-full " style="background:url('<?php echo $image; ?>') no-repeat top center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;"/>
this solution works in IE and Chrome not in Mozilla Firefox where the image is not displayed. So how could I proceed? I tried with src="<?php echo $image; ?>"
, but the ratio is not respected