# Documentation on how to configure the bundle can be found at: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
liip_imagine:
    resolvers:
        default:
            web_path:
                web_root: "%kernel.project_dir%/public" #(%kernel.project_dir%/web for Symfony < 4.0.0)
                cache_prefix: "images/cache"

    loaders:
        default:
            filesystem:
                data_root: "%kernel.project_dir%/public/"
                bundle_resources:
                    enabled: true

    # valid drivers options include "gd" or "gmagick" or "imagick"
    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 :
        cache : ~

        # the name of the "filter set"
        actualityThumbnail :
            # adjust the image quality to 75%
            quality : 80

            # list of transformations to apply (the "filters")
            filters :
                # create a thumbnail: set size to 120x90 and use the "outbound" mode
                # to crop the image when the size ratio of the input differs
                auto_rotate: ~
                thumbnail : { size : [760, 420], mode : outbound, upscale: true }        # the name of the "filter set"

        # the name of the "filter set"
        actualityShow :
            # adjust the image quality to 75%
            quality : 80

            # list of transformations to apply (the "filters")
            filters :
                # create a thumbnail: set size to 120x90 and use the "outbound" mode
                # to crop the image when the size ratio of the input differs
                auto_rotate: ~
                thumbnail : { size : [820, 460], mode : outbound, upscale: true }        # the name of the "filter set"