Working with images styles and effects in Drupal 7 and 8

miksan

I was recently working on a site for a client that needed the possibility to dynamically merge effects from one image style with another depending on a simple logic.
It was exciting to challenge the seemingly static image system and see if it could be done.
And… drum roll… it was a succes and that brought me too new ideas:
Making the functionality generic and transform it into a contrib module.
Find out what it takes to do the same in Drupal 8.


Two goals of the session:
Encourage developers to be curious in how the machinery in Drupal works. By going more in-depth with the code I will show how I discovered the possibilities in the system for reaching my goals.
Unravel the possibilities for dynamically manipulate image styles in Drupal 8 as a part of getting more acquainted with Drupal 8. Finally I will compare the differences in how it is done in Drupal 7 vs 8.

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version