LiipImagineBundle: change image saving path after applying filter

I have this config:

liip_imagine:
    resolvers:
        default:
            web_path: ~

    filter_sets:
        cache: ~
        subitem_in_category: 
            path: ~  ///how to change the default path where the images are saved?
            filters:
                my_custom_filter: { }
                relative_resize: { heighten: 210 }

I try to change the directory name if the images are saved, but I get

InvalidConfigurationException: unrecognized path options in Liip_imagine.filter_sets.subitem_in_category

I read: https://github.com/liip/LiipImagineBundle/blob/master/Resources/doc/configuration.md

+4
source share
1 answer

Functions were removed some time ago for poor design about component dependencies. See this pull request for further motives.

, :

liip_imagine:
  resolvers:
      foo:
        web_path:
          cache_prefix: foo
      bar:
        web_path:
          cache_prefix: bar
  filter_sets:
    foo:
      cache: foo
    bar:
      cache: bar

, .

+1

Source: https://habr.com/ru/post/1570369/


All Articles