onedrop/imagesrcset

Adds responsive image sizes via the the srcset attribute to the default NodeTypes

Installs: 2 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Language:HTML

Type:neos-package

2.0.0 2022-10-06 16:30 UTC

This package is auto-updated.

Last update: 2024-11-06 20:50:38 UTC


README

This adds responsive image sizes via the the srcset attribute to the default Neos.NodeTypes:Image and Neos.NodeTypes:TextWithImage NodeTypes.

How-To:

Install:

Use the command composer require onedrop/imagesrcset to add this package as a requirement to your Neos project.
(Or: Download the zip and unpack it to Packages/Application/Onedrop.ImageSrcset)

Configuration:

The following default values are provided by the plugin:

Onedrop:
  ImageSrcset:
    sizes:          # dynamic array of sizes generated for the srcset attribute
      full: 2560
      large: 1280
      medium: 768
      small: 420
      tiny: 240

Feel free to add or remove sizes according to your specific needs.