LiipImagineBundle: It's not working for me. Source image not found in ""

Hello, I try install that Bundle but I have problem,

I installed that budle and I configured it but it isn’t working.

My config: "liip_imagine: driver: gd web_root: %kernel.root_dir%/../web data_root: %kernel.root_dir%/../web cache_mkdir_mode: 0777 cache_prefix: /media/cache cache: web_path cache_clearer: true data_loader: filesystem controller_action: liip_imagine.controller:filterAction formats: [] filter_sets: my_thumb: quality: 75 filters: thumbnail: { size: [120, 90], mode: outbound }"

and I use it <img src="{{ asset('dostep_desc.png') | imagine_filter('my_thumb') }}">

When I try go to site with that img i have url to file (/jks2/web/app_dev.php/media/cache/my_thumb/jks2/web/dostep_desc.png)

And I have strange line in my log [2012-11-01 14:01:01] request.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Source image not found in “” (uncaught exception) at C:\xampp\htdocs\jks2\vendor\liip\imagine-bundle\Liip\ImagineBundle\Imagine\Data\Loader\FileSystemLoader.php line 88 [] []

Could you help me?

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Got it finally.

  1. I got rid of the asset();
  2. Comparing source codes, I noticed that when I do {{ ‘/uploads/media/’ ~ m.image | imagine_filter(‘my_filter’) }}, the filter applies first to m.image only, then concat the generated string with ‘/uploads/media/’ so that eventually it generates a wrong path. To fix it I just made {{ (‘/uploads/media/’ ~ m.image) | imagine_filter(‘my_filter’) }}. And it worked everywhere in the application.