fritzmg / contao-default-densities
This Contao extension replaces the Contao\Picture class in order to be able to define default pixel densities/scale factors.
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: >=5.2
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ~3.0 || >=4.1,<4.3
Replaces
- contao-legacy/default_densities: 1.1.1
This package is auto-updated.
Last update: 2019-07-21 08:25:53 UTC
README
Contao Default Densities
This Contao extension replaces the Contao\Picture class in order to be able to define default pixel densities/scale factors.
Contao 3.4 and upwards provide the possibility to use automatically generated responsive image sets. These must be defined in the theme's setting. However, if an editor needs to or wants to set the size of an image individually, he cannot rely on those. Thus the generated image will be a plain image and potentially look bad on devices with a dppx greater than 1. With this extension you can optionally define default pixel densities/scale factors which then will be used for any such custom sized images.
This functionality is already built into Contao 4.4.0
.