2017 © Pedro Peláez
 

library vich-imagine-bundle

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

image

itf/vich-imagine-bundle

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  • Friday, August 18, 2017
  • by interface-f
  • Repository
  • 2 Watchers
  • 7 Stars
  • 602 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

VichImagineBundle

This bundle integrates VichUploaderBundle as uploader and LiipImagineBundle as processor (resize etc.) component., (*1)

Installation

composer require itf/vich-imagine-bundle "dev-master"
php app/console assets:install

Activate the bundles in AppKernel.php:, (*2)

public function registerBundles() {
    $bundles = array(
        //[...]
        new Liip\ImagineBundle\LiipImagineBundle(),
        new Vich\UploaderBundle\VichUploaderBundle(),

        new VichImagineBundle\VichImagineBundle(),
    ),
    // ...
}    

Configure VichUploaderBundle

Refer to its documentation to configure this bundle. Here's an example:, (*3)

vich_uploader:
    db_driver: orm # or mongodb or propel or phpcr
    mappings:
        product_image:
            uri_prefix:         /images/products
            upload_destination: %kernel.root_dir%/../web/images/products
            namer: vich.custom.random_namer

Configure LiipImagineBundle

Refer to its documentation to configure this bundle. Here's an example:, (*4)

liip_imagine:
    resolvers:
        default:
            web_path:
                web_root: %kernel.root_dir%/../web
                cache_prefix: cache/
    loaders:
        default:
            filesystem:
                data_root: %kernel.root_dir%/../web/
    driver:               gd
    cache:                default
    data_loader:          default
    default_image:        null
    controller:
        filter_action:         liip_imagine.controller:filterAction
        filter_runtime_action: liip_imagine.controller:filterRuntimeAction
    filter_sets:
        product_image:
            filters:
                jpeg_quality: 75
                #png_compression_level:  ~
                format: jpg
                relative_resize: { widen: 800 }

Configuration Example

That's it., (*5)

License

MIT, (*6)

The Versions

18/08 2017

dev-master

9999999-dev

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn

21/03 2016

0.1.4

0.1.4.0

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn

16/03 2016

0.1.3

0.1.3.0

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn

07/03 2016

0.1.2

0.1.2.0

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn

05/02 2016

0.1.1

0.1.1.0

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn

16/11 2015

0.1

0.1.0.0

Easy integration of VichUploaderBundle (upload) and LiipImagineBundle (processor)

  Sources   Download

MIT

The Requires

 

by Dennis Senn