/drupal-module-image_cover

Adds an image formatter that outputs as <div class="image cover" style="background-image: url(IMAGEPATH)">&lt/div>

Image Cover Field Formatter

Use this module if you want to embed an image with an inline style instead of an img tag.

Output code looks like this:

<div class="image cover" style="background-image: url(http://example.com/sites/default/files/styles/medium/public/example.jpg?itok=0gJ4PttE)"></div>