Symfony想象捆绑

时间:2018-10-09 22:28:31

标签: php symfony liipimaginebundle php-imagine

8,我无法将其升级到4。现在我遇到了问题。我的想象包正在工作,但我应该删除链接的一部分。

这是我的config.yml

liip_imagine:
resolvers:
    default:
        web_path:
            web_root:  %kernel.root_dir%/../public_html/
            cache_prefix:  uploads/cache
loaders:
    default:
        filesystem:
            data_root:  %kernel.root_dir%/../public_html/
filter_sets:
    cache: ~
    wallpaper_thumb:
        quality: 80
        filters:
            relative_resize: { heighten: 720 }
    wallpaper_image:
        quality: 100
        filters:
            thumbnail: { size: [500, 500], mode: outbound }
    album_thumb:
        quality: 100
        filters:
            thumbnail: { size: [450, 450], mode: outbound }
    section_thumb:
        quality: 100
        filters:
            thumbnail: { size: [200, 200], mode: outbound }
    section_thumb_api:
        quality: 100
        filters:
            thumbnail: { size: [1000, 800], mode: outbound }
    slide_thumb:
        quality: 100
        filters:
            thumbnail: { size: [500, 300], mode: outbound }
    wallpaper:
        quality: 100
        filters:
            thumbnail: { size: [50000, 50000], mode: outbound }

这是参数

files_directory: '%kernel.root_dir%/../public_html/uploads/'
files_directory_mp3: '%kernel.root_dir%/../public_html/files/'
files_directory_read: '/uploads/'
files_directory_read_mp3: '/files/'

我得到了这样的图像

$this['imagine']->filter($view['assets']->getUrl($wallpaper->getMedia()->getLink()), 'wallpaper_thumb')

及其工作原理, 像这样http://127.0.0.1/public_html/media/cache/resolve/wallpaper_image / public_html /uploads/419f9516ba1fa6a2454c7c6f3181f693.jpeg

,每当这部分多余且我不需要它时,我都应该删除 / public_html 。如何将其从所有代码中删除?

0 个答案:

没有答案