From 46bb0ac822ac89a59e36c25c0d5ec1051d44fb03 Mon Sep 17 00:00:00 2001
From: RealET <real3t@gmail.com>
Date: Fri, 29 Oct 2021 15:26:25 +0200
Subject: [PATCH] =?UTF-8?q?D=C3=A9sormais,=20un=20logo=20ou=20une=20image?=
 =?UTF-8?q?=20doivent=20avoir=20une=20largeur=20minimum=20de=201920=20pixe?=
 =?UTF-8?q?ls=20N'est=20effectivement=20pris=20en=20compte=20qu'avec=20SPI?=
 =?UTF-8?q?P=204?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Si l'on a besoin de mettre une image plus petite, il faudra passer par FTP…
---
 soyezcreateurs_options.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/soyezcreateurs_options.php b/soyezcreateurs_options.php
index 83da80c3..3f22f4f4 100644
--- a/soyezcreateurs_options.php
+++ b/soyezcreateurs_options.php
@@ -8,6 +8,18 @@ $GLOBALS['mutualisation_afficher_config'] = (isset($GLOBALS['mutualisation_affic
 // Optimisation du chargement des JS (SPIP 3.1 requis, cf https://core.spip.net/issues/3497)
 //define('_JS_ASYNC_LOAD',true);
 
+// Taille minimum et maximum pour logo et images
+// Cf https://git.spip.net/spip/medias/commit/6867398ecffd78630481903b650faeb4b780c9cb
+if (!defined('_LOGO_MIN_WIDTH'))
+	define('_LOGO_MIN_WIDTH', 1920);
+if (!defined('_LOGO_MAX_WIDTH'))
+	define('_LOGO_MAX_WIDTH', 3840);
+
+if (!defined('_IMG_MIN_WIDTH'))
+	define('_IMG_MIN_WIDTH', 1920);
+if (!defined('_IMG_MAX_WIDTH'))
+	define('_IMG_MAX_WIDTH', 3840);
+
 if (!defined('_IMG_GD_QUALITE'))
 	define('_IMG_GD_QUALITE', 95); // Haute qualité pour les images réduites ; voir https://contrib.spip.net/Astuces-SPIP
 
-- 
GitLab