flownative/assetvariantbatchrendering

Letzte Aktivität 02 Dec 2019 968
composer require flownative/assetvariantbatchrendering

Asset variant batch rendering for Neos Flow

1.0.0

Version
1.0.0
Type
neos-package
Release Date
Nov 25, 2019 17:05
Source
git
Distribution
zip
Requires
GPL-3.0-or-later 87a6e47e851d8ca978e4d2485c2f9c58ea1eee94

MIT license Packagist Maintenance level: Acquaintance

Asset variant batch rendering

This package provides batch rendering of asset variants for Neos 4.3. The functionality is to be included in Neos 5.1.

It provides the following functionality:

  • (re-)render variants based on presets
  • re-render variants when replacing an asset resource

Installation

If you want to use this package, simply require it:

$ composer require 'flownative/assetvariantbatchrendering:1.*'

Configuration

The package comes with no configurable settings itself. But you will need to configure asset variant presets. Here is an example for a square preset:

Neos:
  Media:
    variantPresets:
      'AcmeCom:Square':
        mediaTypePatterns: ['~image/.*~']
        variants:
          'square':
            label: 'Square'
            adjustments:
              'crop':
                type: 'Neos\Media\Domain\Model\Adjustment\CropImageAdjustment'
                options:
                  aspectRatio: '1:1'

See the variant presets documentation for details.

The content of the readme is provided by Github
The same vendor provides 44 package(s).