-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imagine_filter() not generating the correct url in LiipImagineBundle #360
Comments
try to change cache_prefix:
|
@makasim Thank you very much for being helpful. For the configuration you gave me, the generated url is: But, I am expecting this url: It is as usual: tuto/web/img is missing! Any idea? |
@mappedinn |
yes! |
I've updated the comment above. |
which version you have for symfony, imagine/imagine and liip/imagine-bundle? |
symfony 2.3 and latest master of the bundle |
same as you! Where you put you images? Are there in a sub folder of |
@makasim I have just tried set cache prefix to: The problem is still the same. the generated url is: The expected url is: As usual, tuto/web/img is missing! For any chosen cache_prefix, I have this:
|
I switch back to This version works correctly... |
Similar problem, same solution: I switched to 0.21.1 |
Hi, liip_imagine :
the key is data_root: "%kernel.root_dir%/../web/uploads/images" all images are in "/web/uploads/images" will be rendered directly with using < img src="{{ entity.mainImage | imagine_filter('thumblists') }}" > I hope it works for you |
I think there is a bug in the bundle LiipImagineBundle. I explain:
Here is my new config of the bundle:
This is the twig part for displaying the image:
The generated link of the image is not correct! In fact, the obtained link is:
http://localhost/media/cache/my_thumb/img/test.jpg
The expected correct link is:
http://localhost/tuto/web/img/media/cache/my_thumb/img/test.jpg
There is a missing part in the url: tuto/web/img . Is this a bug?
To avoid that problem, I did this:
I guess that playing with twig is not a good solution.
It is a bug in LiipImagineBundle? If not, please give the correct config for that bundle!
Thanks!
The text was updated successfully, but these errors were encountered: