LiipImagineBundle icon indicating copy to clipboard operation
LiipImagineBundle copied to clipboard

cache_prefix hard coded?

Open thomasmuench opened this issue 1 year ago • 2 comments

The cache_prefix seems to be hard coded to media/cache. The configuration is not applied correctly, but the value in the configuration must not be empty and php bin/console debug:config liip_imagine also shows the correct configuration. Tested in Symfony 7.1, is there a bugfix?

thomasmuench avatar Aug 06 '24 11:08 thomasmuench

this is per resolver factory. on a quick look i don't see why it would not work, it should work e.g. for flysystem. with which resolver does it not work? can you provide a minimal configuration that reproduces the problem?

dbu avatar Sep 01 '24 10:09 dbu

I confim that with this piece of config the issue appear (media/cache never explicit in config but result in process) :

liip_imagine: # valid drivers options include "gd" or "gmagick" or "imagick" driver: "imagick" cache: default default_filter_set_settings: format: webp webp: generate: true

controller:
    redirect_response_code: 302

loaders:
    default:
        filesystem:
            data_root: '%kernel.project_dir%/public/'

resolvers:
    default:
        web_path:
            web_root: '%kernel.project_dir%/public/'

filter_sets:
    my_thumb:
        format: webp
        quality: 50
        filters:
            scale:
                to: 0.5
        post_processors:
            cwebp: { metadata: null, q: 70 }`

`

darkomenx avatar Feb 18 '25 11:02 darkomenx