Browse Source

redimension des images thumbnail

opentalent 1 year ago
parent
commit
d653d36afa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sql/schema-extensions/001-view_public_events.sql

+ 1 - 1
sql/schema-extensions/001-view_public_events.sql

@@ -27,7 +27,7 @@ AS
         r.capacity AS roomCapacity, 
         r.capacity AS roomCapacity, 
         r.floorSize AS roomFloorSize,
         r.floorSize AS roomFloorSize,
         IF(b.image_id is not null, CONCAT('https://api.opentalent.fr/app.php/_internal/secure/files/', b.image_id, '/raw'), null) AS imageUrl,
         IF(b.image_id is not null, CONCAT('https://api.opentalent.fr/app.php/_internal/secure/files/', b.image_id, '/raw'), null) AS imageUrl,
-        IF(b.image_id is not null, CONCAT('https://api.opentalent.fr/app.php/_internal/secure/files/', b.image_id, '/0x120'), null) AS thumbnailUrl,
+        IF(b.image_id is not null, CONCAT('https://api.opentalent.fr/app.php/_internal/secure/files/', b.image_id, '/300x0'), null) AS thumbnailUrl,
         (SELECT GROUP_CONCAT(DISTINCT CONCAT(f.code))
         (SELECT GROUP_CONCAT(DISTINCT CONCAT(f.code))
          FROM event_categories AS ec
          FROM event_categories AS ec
             LEFT JOIN Categories AS cs ON(cs.id = ec.categories_id)
             LEFT JOIN Categories AS cs ON(cs.id = ec.categories_id)