Integrates the imagine-filters library into Symfony2.
NOTE: This bundle requires either LiipImagineBundle or AvalancheImagineBundle
-
Add to your
composer.json
:composer require zenstruck/imagine-extra-bundle
-
Register the bundle with Symfony2:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Zenstruck\Bundle\ImagineExtraBundle\ZenstruckImagineExtraBundle(), ); // ... }
-
Usage with LiipImagineBundle
# app/config/config.yml liip_imagine: filter_sets: square_200: filters: square_thumbnail: { size: 200, color: 000000 }
-
Usage with AvalancheImagineBundle
# app/config/config.yml avalanche_imagine: filters: square_200: type: square_thumbnail options: { size: 200, color: 000000 }
color: FFFFFF
transparency: 0