Image styles

Even though as we've seen we can handle image manipulations programmatically ourselves, typically, this is done as part of Image Styles which can be created and configured via the UI. These work similarly as they did in Drupal 7 and involve the application of several possible Image Effects in order to create image variations used in different places. Drupal 8 comes with the same three default image styles as did Drupal 7:

The image styles themselves are configuration entities which store configuration specific to the ImageEffect plugins they work with. Once they are created in the UI, we can make use of them in various ways. The ...

Get Drupal 8 Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.