zenstruck/imagine-extra-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Integrate imagine-filters library into Symfony2

v1.1.0 2014-12-05 18:38 UTC

This package is auto-updated.

Last update: 2020-10-28 14:17:20 UTC


README

Build Status Scrutinizer Code Quality Code Coverage SensioLabs Insight Latest Stable Version License

Integrates the imagine-filters library into Symfony2.

NOTE: This bundle requires either LiipImagineBundle or AvalancheImagineBundle

Installation

  1. Add to your composer.json:

     composer require zenstruck/imagine-extra-bundle
    
  2. Register the bundle with Symfony2:

    // app/AppKernel.php
    
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Zenstruck\Bundle\ImagineExtraBundle\ZenstruckImagineExtraBundle(),
        );
        // ...
    }

SquareThumbnailFilter

  • 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 }

Default Configuration

color:          FFFFFF
transparency:   0