At the moment the module “Image Styles Rules” is only available for drupal 7, is there another way to apply conditionally an image style depending on the aspect ratio of the image (portrait or landscape) in Drupal 8? Specifically to be applied to the image profile of an user, on his/hers respective profile page.

  • 1
    TYPO: the module is only available for drupal 7 :)
    – user72672
    Commented Apr 21, 2018 at 8:44

1 Answer 1


This module auto image style, is also available for drupal 8.

It describes:

Allows to apply an image style depending on whether the orientation of original image is portrait or landscape.

So it might be what you want.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.