teufels/tt3-image

[teufels] Image

Installs: 2 095

Dependents: 1

Suggesters: 0

Security: 0

Type:typo3-cms-extension

1.3.1 2024-11-11 08:07 UTC

This package is auto-updated.

Last update: 2024-11-11 08:08:17 UTC


README

VENDOR PACKAGE KEY version

[ ṯeufels ] Image

Provide Viewhelpers, Crop Variants and SVG (inline/file) Support

This version supports TYPO3

TYPO3Version

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 to tt3Image, 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