apply_filter doesn't create image cache in symfony prod
Opened this issue · 2 comments
Hello
When i add a new image in my website, apply_filter doesn't create image in cache.
but in dev that work perfectly and apply_filter create my filtred image in cache successfully.
Config.yml
avalanche_imagine:
source_root: %kernel.root_dir%/../
web_root: %kernel.root_dir%/../
cache_prefix: web/images/
driver: gd
filters:
my_thumb:
type: thumbnail
options: { size: [198, 153], mode: outbound, format: jpg, quality: 50 }
Page.html.twig
<img src="{{ 'relative/path/to/myimage.jpg'| apply_filter('my_thumb') }}" />
Hey @SaadAlaoui. I don't think we'll get any help here. This is from this project's README:
This project is no longer actively maintained, please find one of the populate forks. Thanks!
Hello @SaadAlaoui ,
Below is the solution for your issue.
This was because latest version on AvalancheImagineBundle is not compatible with the Symfony2 Standard Edition available from symfony.com.
Solution
Instead of updating symfony2 I chose to use the version of AvalancheImagineBundle just before the latest commit. Find it here. Of course, you could alternatively update symfony2.
Thanks