【问题标题】:LiipImagineBundle: change the path where the images are saved after applying the filterLiipImagineBundle:应用滤镜后更改图片保存路径
【发布时间】:2015-03-05 22:54:16
【问题描述】:

我有这个配置:

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 }

我正在尝试更改保存图像的目录的名称,但我得到了

InvalidConfigurationException:无法识别的选项“路径”下 "liip_imagine.filter_sets.subitem_in_category"

我已阅读:https://github.com/liip/LiipImagineBundle/blob/master/Resources/doc/configuration.md

【问题讨论】:

    标签: symfony liipimaginebundle php-imagine


    【解决方案1】:

    这些功能前段时间因为组件依赖的不良设计而被删除。 See this pull request for further motivations about this.

    对于相同的功能,建议配置多个解析器,如here 所述:

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

    否则,您可以使用捆绑包的旧分支。

    希望有帮助

    【讨论】:

    • 顺便说一句,我会尽快打开一个关于捆绑包文档的拉取请求
    猜你喜欢
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-07
    • 2015-09-03
    • 1970-01-01
    • 2012-01-21
    相关资源
    最近更新 更多