freezy-bee/nette-imagine-generator

Image Imagine generator for Nette Framework

v1.0.0 2017-05-18 07:56 UTC

README

Build Status Coverage Status

Installation

The best way to install FreezyBee/NetteImagineGenerator is using Composer:

$ composer require freezy-bee/nette-imagine-generator

With Nette 2.4 and newer, you can enable the extension using your neon config.

extensions:
    prependRoute: FreezyBee\PrependRoute\DI\PrependRouteExtension
	imagineGenerator: FreezyBee\NetteImagineGenerator\DI\ImagineGeneratorExtension

imagineGenerator:
    routes:
        - '/generated/<id>--<crop crop>.<extension>'
        - '/generated/<namespace>/<id>--<width [0-9]+>x<height [0-9]+>.<extension>'
        - '/generated/<namespace>/<id>--<width [0-9]+>.<extension>'
        - '/generated/<namespace>/<id>.<extension>'
    providers:
        - App\ImageProviders\CopyProviderMock