LiipImagineBundle cannot resolve image

I am using liipImagineBundle, but I cannot get it to work. Everything is set correctly, but when I try to apply a filter, the converter does not create an image.

<img src="{{ asset('bundles/xy/uploads/images/default/default.png') | imagine_filter('thumb_50x50') }}" />

Generated html code:

<img src="http://social.lh.com/app_dev.php/media/cache/resolve/thumb_50x50/bundles/xy/uploads/images/default/default.png">

If I open the console and call

php app/console liip:imagine:cache:resolve bundles\xy\uploads\images\default\default.png

it works fine after that, because /media/cache/......./default.png is now created. But I do not want to call it from the console every time I upload a picture that requires a thumbnail.

I tried to do this using a controller:

 $imagemanagerResponse = $this->container
    ->get('liip_imagine.controller')
        ->filterAction(
            $this->getRequest(),
            'bundles\xy\uploads\images\default\default.png',      
            'thumb_50x50'              
);

But then I get the error message: It is impossible to guess the mime type, since no guesswork is available (did you enable the php_fileinfo extension?)

This is strange because I have included this extension in php.ini.

- ? symfony2 ?

+4
1

, :

  • URL- html- .
  • ,    php.ini( CLI) ...
  • , apache.

+2

All Articles