smarter-solutions / ez-image-crop
This is a tool that improves cutting images in eZ Publish
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 1
Open Issues: 1
Type:symfony-bundle
Requires
- php: ~5.5|~7.0
- ezsystems/ezpublish-kernel: ~6.6.0
- liip/imagine-bundle: ~1.0
- symfony/symfony: ~2.8.0
This package is not auto-updated.
Last update: 2024-11-09 19:30:07 UTC
README
This is a tool that improves cutting images in eZ Publish
Install Package
composer require smarter-solutions/ez-image-crop "~1.0"
Register Bundle
// ezpublish/EzPublishKernel.php class EzPublishKernel extends Kernel { ... public function registerBundles() { ... $bundles = array( ... new SmarterSolutions\EzComponents\EzImageCropBundle\EzImageCropBundle() ... ); ... } }
Define filters
# ezpublish/config/ezpublish.yaml ezpublish: imagemagick: filters: gravity/center: '-gravity Center' ...
Create Image alias
# ezpublish/config/ezpublish.yaml ezpublish: system: frontend: image_variations: first_alias: reference: null filters: - { name: gravity/center, params: [200, 75] } ...