Skip to content

Instantly share code, notes, and snippets.

View sebkln's full-sized avatar
💭
I may be slow to respond.

Sebastian Klein sebkln

💭
I may be slow to respond.
View GitHub Profile
@sebkln
sebkln / SrcsetImage.html
Last active August 1, 2022 05:46
TYPO3 Fluid sourceset image partial
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:comment>
<!--
Below: Compare the column size with the actual image size.
This allows the editor to set a maxWidth in the Content Element.
The 'sizes' attribute will prevent upscaling to 100vw of smaller images.
Please keep in mind:
- Only srcset values for images greater than this calculated width are generated!