Auto image style

Keeping the dimensions and spacings specified in the template (a portrait or an album orientation

For some projects it is very important to display the image correctly in portrait or landscape format, keeping the dimensions and spacing specified in the template.

All you need is to:

  1. Create 2 Image styles for portrait and to landscape format;
  2. Change the formatter for images from default to “Auto image style”;
  3. Set the templates for images you created

Thus necessary style will be applied to the image depending on whether the initial image was landscape or portrait.

The module is integrated with the Link module. So if a picture goes with the Link field you can specify the path it links if you click on the picture.

The module also easily integrates with other standard modules such as Views, Features, Display Suite, Panels and others.

Cast

Profile picture for user ponomarev

Yaroslav Ponomarev

Web Developer

Next modules

Sticky columns

Enabling sticky columns for Views table (by admin area) and for any table if we use an API

Facebook Reminder

Form - looking like a usual Facebook form - reminds users to sigh in with the Facebook

Better form

The Better form module adds th HTML5 attributes such as "required" or "placeholder" to Drupal forms