contaoblackforest / contao-image-srcset
Contao Image SrcSet for Contao OpenSource CMS
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
Type:contao-module
Requires
- php: >=5.3
- contao-community-alliance/composer-plugin: *
- contao/core: >=3.2-dev,<4-dev
- menatwork/contao-multicolumnwizard: *
This package is auto-updated.
Last update: 2020-01-29 03:22:48 UTC
README
This module extends the file type image in file management, so you can save a picture source set for images.
System requirements
- Web server
- PHP 5.3.2+ with GDlib, DOM, Phar and SOAP
- MySQL 5.0.3+
- contao-core >=3.2-dev,<4-dev
- contao-community-alliance/composer-plugin
- menatwork/contao-multicolumnwizard
Installation
easy to install via Composer-Package-Management in Contao-CMS
Usage
The image formats from the preferences in Contao are supported.
The images source set must be enabled in the corresponding page layout. In the file management the adjustments at the main frame accordingly. The result is this html element.
<img src="image.jpg" srcset="image_320.jpg 320w, image_600.jpg 600w, image_900.jpg 900w" alt="">