Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[RTM] Provide a configuration option to define the predefined image sizes #537
This will allow to configure the image sizes in
contao: image: sizes: foobar: width: 100 height: 200 resizeMode: 'box' zoom: 100 cssClass: 'foobar-image' densities: '1x, 2x' sizes: '100vw' items: - width: 50 height: 50 resizeMode: 'box' zoom: 100 cssClass: 'foobar-image' densities: '0.5x, 2x' sizes: '50vw' media: '(max-width: 900px)' - width: 25 height: 25 resizeMode: 'box' zoom: 100 densities: '0.5x, 2x' sizes: '25vw' media: '(max-width: 450px)' foobaz: width: 300 height: 400 # …
The labels would be defined in a Symfony translation file:
# /translations/image_sizes.en.yml foobar: Foobar image size
Idea came up together with @Toflar.