flownative/assetvariantbatchrendering

此包已被废弃且不再维护。未建议替代包。

Neos Flow的资产变体批量渲染

1.0.0 2019-11-25 17:05 UTC

This package is auto-updated.

Last update: 2024-02-29 03:37:46 UTC


README

MIT license Packagist Maintenance level: Acquaintance

资产变体批量渲染

此包为Neos 4.3提供资产变体的批量渲染功能。此功能将包含在Neos 5.1中

它提供了以下功能

  • 基于预设(重新)渲染变体
  • 在替换资产资源时重新渲染变体

安装

如果您想使用此包,只需require它

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

配置

此包本身没有可配置的设置。但您需要配置资产变体预设。以下是一个正方形预设的示例

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

有关详细信息,请参阅变体预设文档