gpt4 book ai didi

php - "Source image not resolvable"LiipImagineBundle

转载 作者:搜寻专家 更新时间:2023-10-31 21:51:13 25 4
gpt4 key购买 nike

Liip imagine Bundle 不会为其中一个 imagine 过滤器创建缓存文件夹。

liip_imagine:
resolvers:
default:
web_path: ~

driver: imagick

filter_sets:
cache: ~
gallery_image:
quality: 75
filters:
thumbnail: { size: [1600, 1000], mode: inset }
product_unit:
quality: 75
filters:
upscale: { min: [1200, 400] }
thumbnail: { size: [1200, 400], mode: outbound }
graph:
quality: 75
filters:
thumbnail: { size: [1200, 630], mode: inset }
background: { size: [1200, 630], color: '#F29400' }
thumbnail: { size: [1200, 630], mode: inset }
app_logo:
quality: 75
filters:
thumbnail: { size: [200, 80], mode: inset }
background: { size: [200, 80], color: '#fff' }
thumbnail: { size: [200, 80], mode: inset }
shop_logo:
quality: 75
filters:
thumbnail: { size: [150, 60], mode: inset }
background: { size: [150, 60], color: '#fff' }
thumbnail: { size: [150, 60], mode: inset }

它不会创建“shop_logo”。但它确实创建了其他缓存图像 [graph, gallery_image,app_logo etc]♣

我试过

php app/console liip:imagine:cache:resolve app/Resources/images/shops/shop.jpg --filters=shop_logo

我得到错误

[Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException]
Source image not resolvable "app/Resources/images/shops/shop.jpg"

并且当我使用 url 访问图像时出现 404 错误。

http://127.0.0.1:8000/media/cache/resolve/shop_logo/shop.jpg

我确实有媒体的 0775 权限,我也尝试过 777。

最佳答案

我认为 LiipImagineBundle 1.7 有问题,我降级到 1.6,它工作正常。

参见:git hub Issue

关于php - "Source image not resolvable"LiipImagineBundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41631429/

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