This project is not covered by Drupal’s security advisory policy.

This module provides

This module provide a formatter for image field. You can choose to display the width, the height or both of the image.

Use cases

I created this module when refactoring the OpenLayers Styles layer in the OpenLayers module.
This module and the module image URL formatter will now be needed if you want to display image as graphics for your markers.

I don't get the use of this module

The OpenLayers module let you use token for the features styles. The only problem is that, when you use a token for the externalGraphic property, it will also use token for the graphicWidth and graphicHeight.
I had to find a way to make all of this dynamic too, this is why I created this small module.

Notice

Since OpenLayers module beta 9, the rendering of the fields has changed, it's not using the raw value of the field, but the full row rendering. You must disable all the HTML element by selecting None in the Style setting fieldset of the field in Views.

Project information

Releases