Search code examples
phpsymfonybundleliipimaginebundle

Image not found using LiipImagineBundle and Symfony3


I want use LiipImagineBundle in Symfony3.

After installation I've configured the bundle in config.yml:

liip_imagine:
    resolvers:
       default:
          web_path: ~ 
    filter_sets:
        cache: ~
        my_thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound 

use in html code:

<img src="{{ asset('/t/1.jpg') | imagine_filter('my_thumb') }}" />

In rendered html:

<img src="http://localhost/test/web/app_dev.php/media/cache/resolve/my_thumb/test/web/t/1.jpg">

Image not found.


Solution

  • Uncommented this lines in php.ini into php folder.

    extension=php_fileinfo.dll
    extension=php_gd2.dll