【问题标题】:liip imagine the pictures are not showingliip想象图片没有显示
【发布时间】:2022-07-18 23:10:13
【问题描述】:

我在 symfony 6 上使用 liip Imagine,但图像有问题。

我使用 deployer.php 来部署我的项目,我的图像位于一个共享文件夹中,如下所示:/var/www/shared/public/images。

图片网址如下所示: https://monurl.fr/media/cache/resolve/miniature/image.png

但尽管图像在目录中,但它不显示任何内容。缩略图目录不是liip在public/media/cache目录下生成的。

另一方面,我还有其他图像不在共享文件夹中并且生成良好。

这是想象中的 liip 文件配置。

# Documentation on how to configure the bundle can be found at: 

https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
liip_imagine:
    driver: "imagick"
    filter_sets:
        miniature:
            cache: default
            quality: 50
            filters:
                scale:
                    dim: [ 400,400 ]
        photos:
            cache: default
            quality: 50
            filters:
                scale:
                    dim: [ 1200,1200 ]

如果您知道如何使用 liip 管理部署程序的共享文件夹,我很感兴趣。感谢您的帮助。

【问题讨论】:

    标签: symfony liipimaginebundle php-deployer


    【解决方案1】:

    你找到解决这个问题的方法了吗?我有同样的,它在本地工作,但当我在 OVH 上上传我的网站时不能。谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-01
      • 1970-01-01
      • 2012-07-07
      • 2017-06-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多