Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
EabImageFilterBundle | eZ Ecosystem | stable |
Version | Compatible with |
---|---|
N/A | N/A |
eZ Publish 5 bundle for image variation filters.
So far only 1 filter is provided: thumbnailgravityfilter/center.
Based on
Image aliases and filters in eZ Publish 5.4+.
Many thanks Thiago for this useful tutorial!
Licensed under GNU General Public License 2.0
Requires eZ Publish 5.4 or above.
composer require --update-no-dev --prefer-dist eab/image-filter-bundle
or install the source as a submodule using git:
git submodule add https://github.com/eab-dev/ImageFilterBundle src/Eab/ImageFilterBundle
new Eab\ImageFilterBundle\EabImageFilterBundle(),
to the array of bundles. Save it.
system:
default:
image_variations:
my_nice_thumbnail:
reference: ~
filters:
- { name: thumbnailgravityfilter/center, params: [300, 300] }
{% set thumbnail_image = ez_image_alias( content.getField( 'image' ), content.versionInfo, 'my_nice_thumbnail') %}
