J'installe le paquet. LiipImagineBundle pour faire des thumbmails mais ça ne marche pas.LiipImagineBundle - Symfony
Voici mon installation:
Sur le Appkernel
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
// My admin bundle
new AdminBundle\AdminBundle(),
// These are the other bundles the SonataAdminBundle relies on
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
// And finally, the storage and SonataAdminBundle
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new UserBundle\UserBundle(),
new FOS\UserBundle\FOSUserBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle()
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
Et après dans mon application/config.yml
liip_imagine:
resolvers:
default:
web_path: ~
filter_sets:
cache: ~
avatar:
quality: 75
filters:
thumbnail: { size: [120, 90], mode: outbound }
Alors mon cheminement:
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.yaml"
Et la dernière chose que je di d, dans ma brindille je mets le filtre
{% for image in object.image %}
<li><img style="width: auto; height: 80px; margin: 10px; border-radius: 10px; border: 1px solid #d2d6de;" src="{{ asset('uploads/documents/' ~ image) | imagine_filter('avatar') }}"/></li>
{% endfor %}
J'ai créé un dossier sur mon site Web. media/cache avec CHMOD 777
Mais le problème est qu'aucune image n'est générée !!! pouvez-vous me aider sur ce
Si je clique sur une image avec des outils google-développement de mon site, j'ai note, mais une route comme ceci:
<img style="width: auto; height: 80px; margin: 10px; border-radius: 10px; border: 1px solid #d2d6de;" src="https://database.ecotrophelia.org/media/cache/resolve/avatar/uploads/documents/TEST-JEUDI.jpg">
Est-ce un problème de ??? SERVEUR –