raphael 3 years ago
parent
commit
f59a8de6e8

+ 2
- 4
config/packages/liip_imagine.yaml View File

@@ -13,9 +13,7 @@ liip_imagine:
13 13
 
14 14
         # the name of the "filter set"
15 15
         my_thumb:
16
-
17
-            # adjust the image quality to 75%
18 16
             quality: 75
19
-
20 17
             filters:
21
-                relative_resize: { widen: 300 }
18
+                downscale:
19
+                    max: [300, 300]

+ 4
- 1
src/Phoenix/Twig/UploaderExtension.php View File

@@ -25,6 +25,8 @@ class UploaderExtension extends \Twig_Extension
25 25
      */
26 26
     private $helper;
27 27
 
28
+    private $cacheManager;
29
+
28 30
     public function __construct(UploaderHelper $helper,CacheManager $cacheManager,ContainerInterface $container)
29 31
     {
30 32
         $this->helper = $helper;
@@ -74,7 +76,8 @@ class UploaderExtension extends \Twig_Extension
74 76
         }
75 77
         
76 78
         // supprime le début du chemin car le gestionnaire de cache l'ajoute de lui même
77
-        $assetObject = str_replace($uploadStartPath,'',$assetObject);
79
+        $assetObject = trim(str_replace($uploadStartPath,'',$assetObject),'/');
80
+
78 81
 
79 82
         $url = $this->cacheManager->getBrowserPath($assetObject,$thumb);
80 83
         return $url;

+ 1
- 1
templates/learning_space/pages/login/login.html.twig View File

@@ -31,7 +31,7 @@
31 31
 						
32 32
 							<div class="ali-ls-card col-xl-3 col-lg-4 col-md-8 col-sm-10 offset-lg-1">
33 33
 								<div class="ali-ls-card-image">
34
-									{% set logoClient = vich_uploader_asset(site_logo_path,'valueFile') %}
34
+									{% set logoClient = phx_uploader_asset(site_logo_path,'valueFile') %}
35 35
 									{% if logoClient %}
36 36
 										<img class="logo" alt="logo-client" src="{{ logoClient }}"/>
37 37
 									{% else %}

Loading…
Cancel
Save