I successfully install liipImagine following instructions on this link http://symfony.com/doc/master/bundles/LiipImagineBundle/index.html
But when I'm using the code bellow in my twig file :
{{ad.artwork.pictures|first.path|imagine_filter('home_thumb')}}
I'm getting the following url : http://localhost:8000/media/cache/resolve/home_thumb/70869c5748a21e8e734c4c85e5c18ec6bfa9b196.jpeg
I thought that liipImagine saved (cached) the image on my server in the media/cache/resolve/home_thumb folder but it doesn't do that.
Below, my configuration :
liip_imagine:
# http://symfony.com/doc/master/bundles/LiipImagineBundle/cache-resolvers.html
#
resolvers:
default:
web_path:
# %kernel.root_dir%/../web
web_root: %kernel.root_dir%/../../web
# media/cache
cache_prefix: media/cache
loaders:
default:
filesystem:
# %kernel.root_dir%/../web/
data_root: %kernel.root_dir%/../../web/
driver: gd
cache: default
data_loader: default
default_image: null
controller:
filter_action: liip_imagine.controller:filterAction
filter_runtime_action: liip_imagine.controller:filterRuntimeAction
filter_sets:
# Prototype
home_thumb:
quality: 100
jpeg_quality: ~
png_compression_level: ~
png_compression_filter: ~
animated: false
format: ~
cache: ~
data_loader: ~
default_image: null
filters:
# Prototype
thumbnail: { size: [120, 90], mode: outbound }
If I'm doing something wrong, can somebody explain me ?
EDIT POST: When I run CLI, I get this below:
C:\xampp\htdocs\myproject>php app/console liip:imagine:cache:resolve uploads/media/70869c5748a21e8e734c4c85e5c18ec6bfa9b196.jpg --filters=home_thumb
[Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException]
Source image not found in "C:\xampp\htdocs\myproject\app/../web/uploads/media/70869c5748a21e8e734c4c85e5c18ec6bfa9b196.jpg"
I really thanks you for your advices.