teufels / tt3-image
[teufels] Image
1.3.1
2024-11-11 08:07 UTC
Requires
- typo3/cms-core: ^12.4
README
[ ṯeufels ] Image
Provide Viewhelpers, Crop Variants and SVG (inline/file) Support
This version supports TYPO3
Composer support
composer req teufels/tt3-image
Requirements
- none
How to use
- Install with composer
- (Optional) Import Static Template (before sitepackage)
- will be automatically imported - on problems or need of changed order include manual
How to use (ViewHelper)
{namespace tt3Image=Teufels\Tt3Image\ViewHelpers}
<f:format.raw>
<tt3Image:inlineSvg filePath="/absolute/path/to/some_file.svg" removeStyleAttributes="1" />
</f:format.raw>
Migration from hive_image
- migrate from old ViewHelper
hiveImage
tott3Image
, see above how to use ViewHelper
Changelog
- 1.3.0 add necessary accessibility attributes. Implement toggle option for 'decorative' images.
- 1.2.0 add toggle for possibility to disable lazy loading
- 1.1.0 put maxWidth image size in Constants to change on purpose
- 1.1.0 change breakpoint for largest image (1920) from 1280 to 1200
- 1.0.2 stucture code
- 1.0.1 cleanup TypoScript / compress Code
- 1.0.0 intial from hive_image