gpt4 book ai didi

symfony - LiipImagineBundle:更改应用滤镜后图片保存的路径

转载 作者:行者123 更新时间:2023-12-03 22:03:13 24 4
gpt4 key购买 nike

我有这个配置:

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: Unrecognized options "path" under "liip_imagine.filter_sets.subitem_in_category"



我读过这个: https://github.com/liip/LiipImagineBundle/blob/master/Resources/doc/configuration.md

最佳答案

前段时间因为组件依赖的糟糕设计而删除了这些功能。 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

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

希望这有帮助

关于symfony - LiipImagineBundle:更改应用滤镜后图片保存的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27829735/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com