diff --git a/soyezcreateurs_options.php b/soyezcreateurs_options.php index 83da80c3390a935e2d42f5030a0780f51a739713..3f22f4f4f1d1a7443fa46a2b3bb9e5b59d9b2a94 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