"无法找到源图像"当使用Symfony3 LiipImageBundle时

时间:2016-06-01 13:57:13

标签: php symfony liipimaginebundle vichuploaderbundle

我的Symfony3应用程序中出现以下错误消息:

error page

这是Twig代码,以及imag_filter:

Code in Twig + imagine_filter

这是应用LiipImage过滤器后生成的本地URL:

  

本地主机/ symfony3 /网络/ app_dev.php /媒体/高速缓存/决心/ my_thumb / symfony3 /网络/图像/上传/ 5745ce2e628a9.png

这是我对liipimage和vichuploader的配置:

# VichUploader Configuration
vich_uploader:
    db_driver: orm # or mongodb or propel or phpcr
    twig: true
    mappings:
        product_image:
            uri_prefix:         /images/uploads
            upload_destination: %kernel.root_dir%/../web/images/uploads/
            namer:              vich_uploader.namer_uniqid
            inject_on_load:     true
            delete_on_update:   true
            delete_on_remove:   true

# liip_imagine Configuration
liip_imagine:
    resolvers:
       default:
          web_path: ~


    filter_sets:
        cache: ~
        my_thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound }

我该如何解决?

0 个答案:

没有答案