Liip想象Bundle不会为其中一个想象过滤器创建缓存文件夹 .
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等]♣
我试过了
php app/console liip:imagine:cache:resolve app/Resources/images/shops/shop.jpg --filters=shop_logo
我得到错误
[Liip \ ImagineBundle \ Exception \ Binary \ Loader \ NotLoadableException]源图像无法解析“app / Resources / images / shops / shop.jpg”
当我使用网址访问图像时,我有404错误 .
http://127.0.0.1:8000/media/cache/resolve/shop_logo/shop.jpg
我也有0775的媒体许可,我也试过777 .
1 回答
我认为LiipImagineBundle 1.7存在问题我将其降级为1.6并且工作正常 .
见:git hub Issue