Download the PHP package visol/viresponsiveimages without Composer
On this page you can find all versions of the php package visol/viresponsiveimages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download visol/viresponsiveimages
More information about visol/viresponsiveimages
Files in visol/viresponsiveimages
Package viresponsiveimages
Short Description Responsive images for fluid_styled_content
License GPL-2.0-or-later
Homepage https://github.com/visol/ext-viresponsiveimages
Informations about the package viresponsiveimages
Responsive Images for TYPO3 CMS
This extensions provides a ResponsiveImageViewHelper
and a SrcSetViewHelper
to provide responsive images based on
the srcset approach. It supports crop variants, but also defining an own ratio.
While srcset is supported in most current browsers, for background images a similar approach
with a custom data-bgset
attributes can be used.
Compatibility and Maintenance
This package is currently maintained for the following versions:
TYPO3 Version | Package Version | Branch | Maintained |
---|---|---|---|
TYPO3 11.5.x | 2.x | master | Yes |
TYPO3 10.4.x | 1.x | - | No |
TYPO3 9.5.x | 0.9.x | - | No |
Usage in Fluid
This example is showing the setup for a header image, added in the page properties in a desktop and mobile version.
Add to your Fluid template
The corresponding image editor setup in would look like this:
JavaScripts
If you want to support older browsers (e.g. IE) and/or use the bgset feature to create responsive background images, you need to use the lazysizes library.
JavaScript bundled with this extension
The extension uses lazysizes.js along with the plugins respimg/ls.respimg.min.js, ls.parent-fit.min.js
and ls.bgset.min.js which are all included in Resources/Private
and included by
Install using npm
The preferred way to include those libraries would be to disable the includes in your setup through the following TypoScript configuration
and install lazysizes through npm/yarn in your project
or add lazysizes to the dependencies section of your package.json
Then choose your favourite way to build/include the sources from there. With webpack you would import the libraries in your main.js like:
Credits
https://www.npmjs.com/package/lazysizes
visol digitale Dienstleistungen GmbH, www.visol.ch