0

I installed LiipImagineBundle, it looks like the bundle was installed correct. In my template i add the line:

<img src="{{ asset('bundles/codecatsfront/images/python-bg.png') | imagine_filter('my_thumb') }}" alt="...">

but there is server error for this url: http://pc.t/app_dev.php/media/cache/my_thumb/bundles/codecatsfront/images/python-bg.png

my python-bg.png is src/CodeCats/FrontBundle/Resources/public/images/ linked to web/codecatsfront/images.

I also tried command:

app/console liip:imagine:cache:resolve php-bg.png

and it works, my additional config for this bundle:

liip_imagine:
    resolvers:
       default:
          web_path: ~

    filter_sets:
        cache: ~
        my_thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound }
tstr
  • 1,254
  • 20
  • 35

1 Answers1

1

You should get rid of the "asset()" function.

<img src="{{ 'bundles/codecatsfront/images/python-bg.png' | imagine_filter('my_thumb') }}" alt="...">

Does it fix it ?

Chiguicapa
  • 53
  • 2
  • 8