Z
Z
zankoav2017-05-25 17:17:00
symfony
zankoav, 2017-05-25 17:17:00

Why Symfony LiipImagineBundle doesn't create previews?


<img src="{{ vich_uploader_asset(app.user, 'avatarFile')| imagine_filter('my_thumb')}}" data-image="{{ app.user.avatar }}" class="js-avatar-img"><


When uploading a picture, the original is loaded into web/uplouds/img/avatars
And the picture Preview my_thumb - should go to the folder web/media/cache/my_thumb/iuplouds/img/avatars
Displays the url correctly:

<img src="https://6vkusov.by/media/cache/resolve/preview_food_thumb/uploads/img/food/5926df9744d52.png">


But there is simply no picture there and the browser knocks out an error 500 in the console
Everything worked before the transfer of the site from another hosting
The code did not change after the transfer, only this module does not work, help me figure it out
Here is config.yml

vich_uploader:
    db_driver: orm
    mappings:
        user_avatar:
            uri_prefix: /uploads/img/avatars
            upload_destination: '%kernel.root_dir%/../web/uploads/img/avatars'
            namer: vich_uploader.namer_uniqid
liip_imagine:
    resolvers:
        default:
            web_path: ~
    filter_sets:
        cache: ~
        my_thumb:
            quality: 75
            filters:
                thumbnail: { size: [125, 125], mode: outbound }
</blockquote>

Here is routing.yml

_liip_imagine:
    resource: "@LiipImagineBundle/Resources/config/routing.xml"


Cleared cache php bin/console cache:clear --env=prod
did not help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question