Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AvalancheImagineBundle creating simple thumbs doesn't work

I have a problem with AvalancheImagineBundle for Symfony 2

I followed the basic instructions but it doesn't work

<img src="{{ ('/mywebsite/web/uploads/myphoto.jpg')| apply_filter('my_thumb')}}"/>

my image is here without the apply_filter but with the filter, i have this and a not found image.

<img src="/mywebsite/web/app_dev.php/media/cache/my_thumb/mywebsite/web/uploads/myphoto.jpg">

any clues ?

like image 543
Tib Avatar asked May 19 '26 11:05

Tib


1 Answers

I assume that image path you use is wrong. It should be relative path to the image, like this - <img src="{{ 'uploads/myphoto.jpg'| apply_filter('my_thumb')}}"/>

Also think that it is a good idea to use forked bundle instead, because it has more features and more active developers.

like image 136
Anton Babenko Avatar answered May 21 '26 23:05

Anton Babenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!