2

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

错误页面

这是 Twig 代码以及imagine_filter:

Twig +imagine_filter 中的代码

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

localhost/symfony3/web/app_dev.php/media/cache/resolve/my_thumb/symfony3/web/images/uploads/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 }

我该如何解决?

4

0 回答 0