You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there are no cache generated in media/cache. I tried the console php bin/console liip:imagine:cache:resolve relative/path/to/image.jpg --filters=my_thumb then it works perfectly.
So is it possible to resolve in the code, controller or service? The reason I want to do this is because I have some heavy task image and I want to pre generate the cache before the client request.
Here is my config:
liip_imagine:
# valid drivers options include "gd" or "gmagick" or "imagick"driver: "gd"resolvers:
default :
web_path : ~filter_sets:
my_thumb:
quality: 70filters:
thumbnail: { size: [120, 90], mode: outbound, allow_upscale: true }background: { size: [124, 94], position: center, color: '#000000' }
Thanks
The text was updated successfully, but these errors were encountered:
if you do the web request as the browser would do it, the cache should also be warmed up. if you want to call the liip imagine services from code, i'd check again what the liip:imagine:cache:resolve command does and try to do mimik the same.
I want to pre-generate the cache, by doing:
But there are no cache generated in media/cache. I tried the console
php bin/console liip:imagine:cache:resolve relative/path/to/image.jpg --filters=my_thumb
then it works perfectly.So is it possible to resolve in the code, controller or service? The reason I want to do this is because I have some heavy task image and I want to pre generate the cache before the client request.
Here is my config:
Thanks
The text was updated successfully, but these errors were encountered: