Sascha Egerer

45 Followers
71 Following
4 Posts
Danke @viennawriter für deinen Talk zum #Fediverse auf der #EnterJs #ejs26
Hat mich dazu bewogen doch mal wieder öfter rein zu schauen.

And of course, defining crop variants is only half of the fun.
Here is an example of what I have working now, from defining crop variants in the same place as defining image variants to render responsive images from crop variants but also with different sizes

https://gist.github.com/helhum/58cc80edac277ae9819a26ef7aaaacd0

This strategy enables full flexibility with manageable overhead. Knowledge of “srcset”, “sizes” and “sources” in “picture” tag is currently mandatory to understand what is going on.

#typo3

Responsive image backend definition and frontend rendering with helhum/typo3-top-image

Responsive image backend definition and frontend rendering with helhum/typo3-top-image - ANewsImageVariantExample.php

Gist